[R] Building a what list for scan to use

Alex van der Spek doorz at xs4all.nl
Mon May 31 13:07:05 CEST 2010


Using read.table now on large files. Scan should be faster reading and 
parsing the files if a 'what' list is provided.

How would I generate a what list that repeats the the last 4 elements n 
(n=14 or 10 or 8) times?

whatlist=list(Tstamp="",Condition=0,A1=0,B1=0,C1=0,D1=0)

All are numeric, either decimal or hexadecimal.

Thanks in advance,
Alex van der Spek



More information about the R-help mailing list