subset {narray}R 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


[Package narray version 0.5.1 Index]