chmAddCovariate | R Documentation |
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.
chmAddCovariate(dataset, where, covariate)
## S4 method for signature 'ngchmDataset,character,ngchmCovariate'
chmAddCovariate(dataset, where, covariate)
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. |
The extended dataset.
chmNewCovariate()
ngchmCovariate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.