apply,mass_dataset-method | R Documentation |
###old version #' @title apply #' @method apply mass_dataset #' @param X X #' @param MARGIN MARGIN #' @param FUN FUN #' @param ... ... #' @param simplify simplify #' @export #' @rdname mass_dataset-summary #' @return result
## S4 method for signature 'mass_dataset'
apply(X, MARGIN, FUN, ..., simplify = TRUE)
X |
A mass_dataset object. |
MARGIN |
An integer vector indicating which margins should be "swept out". 1 indicates rows, 2 indicates columns. |
FUN |
The function to be applied. This function should take a data vector argument and return a result of length one. |
... |
Additional arguments to FUN. |
simplify |
Logical; should the result be simplified to a vector or matrix if possible? |
apply.mass_dataset = function(X, MARGIN, FUN, ..., simplify = TRUE) apply(as.matrix(X@expression_data), MARGIN, FUN, ..., simplify = simplify)
The result of applying FUN to the margins of X. If simplify is TRUE, then the result may be a vector or matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.