Description Usage Arguments Details Value Examples
An homage to base R
's apply
family of functions.
1 2 |
gty |
an object of class |
margin |
dimension of the array over which to apply |
expr |
an expression defining subsets of |
fn |
the function to apply over the subsets defined by |
strip |
logical; if |
... |
other arguments passed-through to |
The grouping expression expr
is evaluated in the parent environment by default. Use the
dot function to get lazy evaluation like with subset()
(see examples).
When fn()
will involve heavy use of array slicing, use strip
to avoid having to
slice sample/marker metadata repeatedly.
a list with one element per value of the grouping expression (expr
); the value of that
element is the return value of fn()
applied to the subset of gty
defined
by expr
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.