[R] reading in vectors from text files

From: Rashmi Mathur <rashmimathur_at_shaw.ca>
Date: Mon 21 Mar 2005 - 17:12:52 EST


Hello,

I am trying to read in a file of data using read.table(), in which the data in one column is vectors.

The format of the file is as follows -

FirstName	LastName	no.Children		children.ages
Sally		James		3			c(3,5,7)
John		Smith		2			c(13,16)
Betsy		Harold	6			c(2,5,8,12,15,17)


How do I specify that the children.ages column contains vector data, and that each vector is of a different length when reading in this text file?

Thanks in advance,
Rashmi



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Mar 21 17:20:18 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:51 EST