getColMask: Get logical mask of object columns.

Description Usage Arguments Value

View source: R/util.R

Description

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

Usage

1
getColMask(x, requested = NULL)

Arguments

x

An object with columns.

requested

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

Value

Logical mask of object columns.


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