chmAddCovariate-method: Add a covariate to an auxiliary dataset.

chmAddCovariateR Documentation

Add a covariate to an auxiliary dataset.

Description

Add a covariate to an auxiliary dataset and return the extended dataset. Do not confuse this function with the one for adding a covariate bar to an NGCHM. For that, please refer to the function chmAddCovariateBar.

Usage

chmAddCovariate(dataset, where, covariate)

## S4 method for signature 'ngchmDataset,character,ngchmCovariate'
chmAddCovariate(dataset, where, covariate)

Arguments

dataset

The dataset to add the covariate to.

where

The dataset axis to add the covariate to. Must be one of "row", "column", or "both".

covariate

The covariate to add to the dataset.

Value

The extended dataset.

See Also

chmNewCovariate()

ngchmCovariate


bmbroom/NGCHMR documentation built on April 18, 2022, 6:52 p.m.