| aggregate2 | R Documentation |
An alternative aggregation function with a formula-interface, to avoid the cbind-operation in the function aggregate.formula.
aggregate2(data, by, ...)
data |
a data.frame |
by |
a two-sided formula |
... |
additional parameters of the function aggregate.data.frame,
except for |
The cbind-operation in the function aggregate.formula messes up with column(s) that are
and treat them as integer
and treat them as matrix
The function aggregate.data.frame only accepts
a list of factors for the parameter by.
Therefore, the function aggregate2() is created to take care of
the factor and Surv columns of the input,
with a formula-interface.
The function aggregate2() returns a data.frame.
The function aggregate.data.frame is the workhorse of the function aggregate.formula.
The function as.hyperframe.data.frame is designed to handle the list-columns returned by the function aggregate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.