Wrapper for by that returns a data frame
by_df.RdWrapper for by that returns a data frame
Arguments
- data
an R object, normally a data frame, possibly a matrix.
- INDICES
a factor or a list of factors, each of length
nrow(data). For the data frame method,INDICEScan also be a formula as in thefargument of thesplitmethod for data frames.- FUN
a function to be applied to (usually data-frame) subsets of
data.- ...
Arguments passed on to
base::by- simplify
logical: see
tapply.- bind_fx
Binding function for the output (e.g.,
rbindorcbind).