[R] How do I read multiple rows of different lengths?

David Winsemius dwinsemius at comcast.net
Wed Oct 27 21:54:15 CEST 2010


On Oct 27, 2010, at 3:27 PM, smcguffee wrote:

>
> Actually, I take that back, this is only reading in 18 values at the  
> most in
> a list, but some lists should be over 200 values in length...

I think the read.table and cousins read in some modest fraction of the  
data

Probably need to either preprocess with  readLines if you want an  
exact match of width or maybe take a guess with  ... ,  colClasses =  
rep("numeric", 250)  to create a sufficiently wide set of columns to  
hold everything.


-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list