Skip to content
Prev 46892 / 63424 Next

read.table() with quoted integers

On Oct 4, 2013, at 17:10 , Henrik Bengtsson wrote:

            
concerN?
The obvious fix for that would seem to be to use scan() on the character vector:
[1] "1" "2" "3" "4" "5"
Read 5 items
[1] 1 2 3 4 5
Read 5 items
[1]  1  2  3  4 NA
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
  scan() expected 'a real', got 'foo'