The function has two versions: a regular function and a setter. They do the same thing, but the setter probably results in less verbose code for you.
moveToGroup(x, value)moveToGroup(x) <- value
VariableGroup
Variable, VariableCatalog subset, or Dataset subset
x
with the entities in value
appended to it. If the
containing order object has duplicates=FALSE, the entities will be "moved"
to this group. Otherwise, their references will be copied to the group.
# NOT RUN {
moveToGroup(ordering(ds)[["Demographics"]]) <- ds[c("gender", "age")]
# }
Run the code above in your browser using DataLab