I have a block of text that I have scraped into R and is being read as one long character string.
Example of block of text:
[1] "abc \n 18:19 \n abc \n 7-9 \n abc \n"
Summary of block of text:
summary(text)
Length Class Mode
1 character character
I then do a strsplit text <- strsplit(text, "\n")
Summary of text after strsplit
summary(text)
Length Class Mode
[1,] 5 -none- character
What I would like when I complete the strsplit
summary(text)
Length Class Mode
5 character character
Any help will be appreciated. Please let me know if anymore information is needed.