RE: [R] list of frames without first element

2004-08-06 Thread Liaw, Andy
From: Luis Rideau Cruz R-help, I have a list of several data frames. I want to compute the rowSums of the columns of these data frames but first one. Something like this lapply(my.list,rowSums) You're almost there: lapply(my.list, function(x)

Re: [R] list of frames without first element

2004-08-06 Thread Uwe Ligges
Luis Rideau Cruz wrote: R-help, I have a list of several data frames. I want to compute the rowSums of the columns of these data frames but first one. ... but first data.frame or but first column? but first data.frame: lapply(my.list[-1], rowSums) but first column: lapply(my.list, function(x)