subset | R Documentation |
Subsets an array using a list with indices or names
subset(X, index, along = -1, drop = FALSE)
X |
The array to subset |
index |
A list of vectors to use for subsetting, or vector if along is given |
along |
Along which dimension to subset if index is a vector; default is last dimension; argument is ignored if X is a vector |
drop |
Remove unused dimensions after mapping; default: TRUE |
The subset of the array
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.