Re: [R] Table to List Transformation Scenario

2010-04-21 Thread Gabor Grothendieck
Assuming the date as id is the first column followed by 23 values, try the read.reps function found here: http://www.mail-archive.com/r-help@r-project.org/msg92123.html like this: DF <- read.csv("myfile", as.is = TRUE) read.reps(DF, 23) On Wed, Apr 21, 2010 at 2:24 PM, Idgarad wrote: > I have

Re: [R] Table to List Transformation Scenario

2010-04-21 Thread Phil Spector
I'm guessing that you are using the words "table" and "list" to mean "data frame". If that's the case, something like this might get you started: dfnew = reshape(Test1,varying=list(paste('Hour',1:23,sep='')), timevar='Hour',idvar='Date',direction='long') dfnew = dfnew[order(dfne