Description Usage Arguments Value
compute_descriptor is wrapper for the apply
function to facilitate row or column wise operations on matrix and data.frame
objects.
1 | compute_descriptor(x, fun, by = "col", ...)
|
x |
A matrix or data.frame |
fun |
A function defining a descriptor to apply to x. fun must must operate on a vector basis. The rows or columns of x will be passed as the first argument. Other arguments can be passed with ... |
by |
A character vector. "row" defines row-wise and "col" defines column-wise operation. |
... |
Additional arguments to pass to fun |
A vector, data.frame/matrix or a list with the computed descriptor values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.