Subsets an array using a list with indices or names
subset(X, index, along = -1, drop = FALSE)
The subset of the array
The array to subset
A list of vectors to use for subsetting, or vector if along is given
Along which dimension to subset if index is a vector; default is last dimension; argument is ignored if X is a vector
Remove unused dimensions after mapping; default: TRUE