Description Usage Arguments Value See Also
Apply a many-to-N function (e.g. mean) to the rows or columns of a
"xifti"
. If applied row-wise, a "xifti"
with N data column(s)
is returned. (If the "xifti"
had the dlabel intent, and values that
are not labels are created, then it is converted to dscalar.) If applied
column-wise, a numeric matrix with N rows is returned.
For univariate functions, use transform_xifti
instead.
1 | apply_xifti(xifti, margin = c(1, 2), FUN, ...)
|
xifti |
A |
margin |
The dimension along which to apply |
FUN |
The function. It should take in a numeric vector and return a length-N numeric vector. |
... |
Additional arguments to |
A "xifti"
if margin == 1
, or a numeric matrix if
margin == 2
Other functions for manipulating 'xifti' objects:
add_surf()
,
combine_xifti()
,
convert_to_dlabel()
,
merge_xifti()
,
newdata_xifti()
,
remove_xifti()
,
select_xifti()
,
transform_xifti()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.