Skip to content
Prev 106687 / 398525 Next

Aggregation using list with Hmisc summarize function

Note that you don't really need list or llist in this case:

summarize(x, by = mydata[2:3], FUN = mean, na.rm = TRUE)

Also you could use aggregate:

aggregate(mydata[1], mydata[2:3], mean, na.rm = TRUE)
On 12/28/06, Muenchen, Robert A (Bob) <muenchen at utk.edu> wrote: