Skip to content

aggregation question

1 message · Liaw, Andy

#
split() only split the data frame into a list of data frames, according to
the variable supplied as the second argument.  You can then use
sapply()/lapply() to apply the same operation on each piece, where each
piece contains all the variables.

Andy