Skip to content
Prev 8789 / 398502 Next

Selective column loads with scan()

On Sun, 7 Jan 2001, Uwe Ligges wrote:

            
Unfortunately that gives you the first column.  With S you need the NULLs
in there (and then it is a known trick), but they are not accepted in R.

BTW,
[[1]]:
[1] ""
[[1]]:
NULL

[[2]]:
NULL

[[3]]:
[1] ""

are different.

I don't know a good way to do this in R, but then I would not try it.
Either use `cut' to extract the columns(s) needed from the file, or
use a database and a connection such as RODBC to do the extraction in the
database.