getRowMask: Get logical mask of object rows.

Description Usage Arguments Value

View source: R/util.R

Description

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

Usage

1
getRowMask(x, requested = NULL)

Arguments

x

An object with rows.

requested

A character vector of row names, a logical vector of length equal to the number of object rows, or a numeric vector of row indices of the input object. If this parameter is not specified, the returned logical mask is TRUE for all rows.

Value

Logical mask of object rows.


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