Skip to content
Prev 198879 / 398506 Next

Incremental ReadLines

Hi Gene,

Rather than using R to parse this file, have you considered using either 
grep or sed to pre-process the file and then read it in?

It looks like you just want lines starting with numbers, so something like

grep '^[0-9]\+' thefile.csv > otherfile.csv

should be much faster, and then you can just read in otherfile.csv using 
read.csv().

Best,

Jim
Gene Leynes wrote: