split | R Documentation |
Splits and array along a given axis, either totally or only subsets
split(X, along, subsets = c(1:dim(X)[along]), drop = NULL)
X |
An array that should be split |
along |
Along which axis to split; use -1 for highest dimension |
subsets |
Whether to split each element or keep some together |
drop |
Remove unused dimensions after mapping default: drop if all resulting arrays have same number of dimensions |
A list of arrays that combined make up the input array
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.