Slices A Matrix Along A Dimension
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, virginie.guemas@ic3.cat) - Original code
1.0 - 2013-09 (N. Manubens, nicolau.manubens@ic3.cat) - 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))))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.