Skip to content
Prev 43620 / 398513 Next

problem with read.table

Any ideas why read.table complains about not correct number of elements in 
line
while readLine/strsplit indicate that all lines have the same number of 
elements ?

R
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = 
dec,  : 
        line 32 did not have 27 elements
'\t')[[1]]) }
[1] 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 
27 27
[26] 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 
27 27
[51] 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27 27
[1] 0
[1] 27