getColIndices: Get column indices of object.

Description Usage Arguments Value

View source: R/util.R

Description

Get column indices of object.

Usage

1
getColIndices(x, requested = NULL, strict = FALSE)

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 is specified, only the requested column indices are returned; otherwise, this function returns all column indices.

strict

Option indicating that requested, if specified, must be in the same order as the corresponding columns of the input object.

Value

Integer vector of column indices.


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