R raw text file missing lines after read -
i looking text mining , attempting read in flat file raw texts, when read file in, missing more half rows after read. file looks similar this;
ddjkfj; raw line of text ? fjpflij jfioej33 line of text jdkfjd etc.
i trying read in, using method,
data <- read.table('text.txt',sep='\n',fill=t)
how can read in without skipping or joining lines?
you can try using readlines instead:
lines <- readlines('filetoread.txt') lines [1] "ddjkfj; raw line of text ? fjpflij " [2] "jfioej33 line of text jdkfjd"
Comments
Post a Comment