Subset an array with the supplied dimnames and - if defined - replace values.
asub(x, ..., drop = TRUE)An array with named dimensions.
One or several vectors of indices or character strings to be used
to subset x. Argument names refer to the dimension name to be subset,
while argument values specify the selected elements along the respective
dimension. Examples: cell = c(27411:27416), band = -c(14:16, 19:32),
band = c("rainfed rice","rainfed maize").
Logical. If TRUE (default), dimensions with a length of 1 are
dropped from the result. Otherwise, they are kept.
array (or vector if drop = TRUE and only one dimension is left)
of the selected subset of x.