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;    etc...
- Data; [a] [b]
- [a2] [b2]
How do I delete these unwanted line breaks, so that [a, b, c] are all on the same row, rather than on different ones?