Displaying 1 result from an estimated 1 matches for "tabsposn".
Did you mean:
tabsposns
2013 Oct 04
2
Tab Separated File Reading Error
...t;- read.table("matched.txt", sep = '\t', stringsAsFactors = FALSE)
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 5933 did not have 12 elements
However, all lines do have 12 columns.
> lines <- readLines("matched.txt")
> tabsPosns <- gregexpr("\t", lines)
> table(sapply(tabsPosns, length))
11
367274
> system("wc -l matched.txt")
367274 matched.txt
You can obtain the file from https://dl.dropboxusercontent.com/u/37992150/matched.txt
The line does not contain comment or quote characters....