chmAddCovariate {NGCHM} | R 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
[Package NGCHM version 1.0.3 Index]