getMask: Get logical mask of object elements.

Description Usage Arguments Value

View source: R/util.R

Description

Get logical mask of the elements of an object, as constrained by the requested parameter. If using this function without requested constraints, consider using the command rep(TRUE, length(x)) instead.

Usage

1
getMask(x, requested = NULL)

Arguments

x

An object that is subsettable by a logical mask.

requested

A character vector of names, a logical vector of the same length as the input object, or a numeric vector containing indices of the input object. If this parameter is not specified, the returned logical mask is TRUE for all elements.

Value

Logical mask of object elements.


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.