Learn R Programming

crunch (version 1.14.4)

moveToGroup: Move entities to a group

Description

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.

Usage

moveToGroup(x, value)
moveToGroup(x) <- value

Arguments

x
VariableGroup
value
Variable, VariableCatalog subset, or Dataset subset

Value

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.

Examples

Run this code
## Not run: 
# moveToGroup(ordering(ds)[["Demographics"]]) <- ds[c("gender", "age")]
# ## End(Not run)

Run the code above in your browser using DataLab