get_data_manage_standard_cols: Get a vector of column names expected for a dataset.

View source: R/data_manage.R

get_data_manage_standard_colsR Documentation

Get a vector of column names expected for a dataset.

Description

Get a vector of column names expected for a dataset.

Usage

get_data_manage_standard_cols(data, coltype)

Arguments

data

A data.frame or similar object

coltype

A vector of values to match in the "Column Type" column of 'data' or 'NULL' to match all values.

Details

The input 'data' must have columns named "Column Type" and "Column Name". The "Column Type" defines arbitrary strings to be matched to subset for the "Column Name"s of interest. The "Column Name" are the names themselves.

If not all "Column Type" values are in 'data[["Column Type"]]', an error will be raised.

Value

A vector of the subset of "Column Name" values that are in rows of "Column Type".

See Also

Other Data Management: check_expected_cols(), nonmem_column_order()


billdenney/bsd.report documentation built on Jan. 16, 2024, 12:54 a.m.