[R] Does R have an equivalent for Matlab's cell array?

2012-12-22 Thread Matthijs Daelman
Hi I have a time series of measurements: every 10 min. a value was logged. The data look like: 20100914 08:01 3.74 20100914 08:11 3.74 20100914 08:21 3.71 20100914 08:31 4.39 20100914 08:41 3.74 This data spans several months. I would like to group the data per day. In

Re: [R] Does R have an equivalent for Matlab's cell array?

2012-12-22 Thread Jeff Newmiller
Data frames are lists of vectors. You can have the vectors in a data frame be of mode list, if you wish. It would be more conventional to simply make the list and not put it into the data frame, since columns of mode list give write.table fits. I prefer to simply keep the first form of your

Re: [R] Does R have an equivalent for Matlab's cell array?

2012-12-22 Thread David Winsemius
On Dec 22, 2012, at 2:58 AM, Matthijs Daelman wrote: Hi I have a time series of measurements: every 10 min. a value was logged. The data look like: 20100914 08:01 3.74 20100914 08:11 3.74 20100914 08:21 3.71 20100914 08:31 4.39 20100914 08:41 3.74 This data

Re: [R] Does R have an equivalent for Matlab's cell array?

2012-12-22 Thread Rui Barradas
Hello, Something like this? dat - read.table(text= 20100914 08:01 3.74 20100914 08:11 3.74 20100914 08:21 3.71 20100914 08:31 4.39 20100914 08:41 3.74 ) dat split(dat$V3, dat$V1) This gives you a list where each element is a (1-dimensional) vector, and each of those

Re: [R] Does R have an equivalent for Matlab's cell array?

2012-12-22 Thread arun
-project.org Cc: Sent: Saturday, December 22, 2012 5:58 AM Subject: [R] Does R have an equivalent for Matlab's cell array? Hi I have a time series of measurements: every 10 min. a value was logged. The data look like: 20100914 08:01    3.74 20100914 08:11    3.74 20100914 08:21    3.71