Description Usage Arguments Value See Also Examples
Group a vector into subsets according to level
combinations of one or several factors and apply a function
separately to every subset. This function differs from
ave
in three respects. Firstly, factors
have to be supplied in an explicit list. Secondly, the
function is a positional parameter. Thirdly and most
importantly, there is now a way to supply any number of
additional arguments to the function via ...
as in the
apply-family of functions.
1 |
x |
Atomic vector |
factors |
List of factors of the same length as |
f |
Function |
... |
Further arguments to |
A vector of the same length as x
. Subsets of the
result vector equal the result of applying f
to the
corresponding subsets of x
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.