Description Usage Arguments Value See Also Examples
Apply a function columnwise to groups of rows in a matrix,
according to a grouping index. Essentially applies the same
tapply
to multiple colums of a matrix.
1 |
x |
a matrix containing numeric, complex, integer or logical values, or a data frame. |
index |
list of one or more factors, each of same length as
|
fun |
the function to be applied. In the case of functions
like |
margin |
over which margin should the operation take place
(i.e. which margin matches |
... |
other arguments to be passed to |
a matrix with dimensions dim(x)[1], length(index)
Other utility: badRows
,
cellIdx
, expand
,
merge.formula
, rowProds
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.