Hello,
I am using Rstudio and trying to load in a txt document like so:
table <- read.table("association_test.assoc.txt",
as.is = "rs",header = TRUE)
However, I get this error:
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 1 did not have 9 elements
Looking at the file, there is an unwanted line break, so my data looks like this:
- Header; [1] [2] [3] etc...
- Data; [a] [b]
- [c]
- [a2] [b2]
- [c2]
How do I delete these unwanted line breaks, so that [a, b, c] are all on the same row, rather than on different ones?
Thank you!