Description Usage Arguments Value Examples
View source: R/array_transform.R
splitArray
splits an array along given dimension(s) into a list of
sub-arrays
1 | splitArray(dat, whichdim, f = NULL, drop = FALSE)
|
dat |
numeric array (preferably with named dimnames) |
whichdim |
numeric or character vector, the dimension(s) of the array to split along |
f |
a list of factors in the sense that
|
drop |
logical; should singleton dimensions (dimensions with only one level) be deleted (TRUE) or not (FALSE, the default) |
A list of subsets of the original data matrix/array with dim
and dimnames
attributes. The dimensions of the list correspond to the
length of each element in f
(after replacing NULL values with correct
vectors).
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.