View source: R/add-subvariable.R
addSubvariable | R Documentation |
Add subvariable to an array
addSubvariable(variable, subvariable)
addSubvariables(variable, subvariable)
variable |
the array variable to modify |
subvariable |
the subvariable to add, or a list of those to add, or a dataset subset. You can supply variables, variable definitions or lists of variables and variable definitions. |
variable
with the indicated subvariables added.
subvariables()
## Not run:
ds$allpets <- addSubvariable(ds$allpets, ds$allpets_4)
ds$petloc <- addSubvariables(ds$petloc, ds[c("petloc_school", "petloc_daycare")])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.