subset: Subsets an array using a list with indices or names

View source: R/subset.r

subsetR Documentation

Subsets an array using a list with indices or names

Description

Subsets an array using a list with indices or names

Usage

subset(X, index, along = -1, drop = FALSE)

Arguments

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

Value

The subset of the array


mschubert/narray documentation built on Jan. 12, 2023, 8:26 a.m.