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)
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)