[R] scan() problem

2003-09-10 Thread Paul Bayer
Dear R-helpers, I have to read some large csv-files into R (30 - 100MB). Since reading with read.csv leads to memory exhausted, I tried with scan(), skipping not needed columns by NULL-elements in what. When these skipped elements are quoted strings with commata inside, R interprets each such

Re: [R] scan() problem

2003-09-10 Thread Gabor Grothendieck
If the records are always of the form: number,...,...,number where ... may contain commas but not double quotes then here is a kludgy solution. Perhaps its sufficient? # scan in data using as the delimiter and keep first and last fields s -