SelIndices | R Documentation |
This function selects a subset of ensemble members from an array containing any number of dimensions.
SelIndices(var, posdim, limits)
var |
An array with any number of dimensions. |
posdim |
The dimension along which the ensemble subset should be selected. |
limits |
The lower and upper limits for the selection of ensemble members along the posdim dimension. |
The subsetted array.
History:
0.1 - 2011-04 (V. Guemas) - Original code
1.0 - 2013-09 (N. Manubens) - Formatting to CRAN
a <- array(rnorm(24), dim = c(2, 3, 4, 1)) print(a) print(a[, , 2:3, ]) print(dim(a[, , 2:3, ])) print(SelIndices(a, 3, c(2, 3))) print(dim(SelIndices(a, 3, c(2, 3))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.