Manipulate VariableGroup and VariableOrder

# S4 method for OrderGroup
entities(x, simplify = FALSE)

# S4 method for ShojiOrder
entities(x, simplify = FALSE)

# S4 method for list
entities(x, simplify = FALSE)

# S4 method for OrderGroup
entities(x) <- value

# S4 method for ShojiOrder
entities(x) <- value

# S4 method for OrderGroup
name(x)

# S4 method for OrderGroup
name(x) <- value

# S4 method for ShojiOrder
names(x) <- value

Arguments

x

a VariableGroup or VariableOrder

simplify

logical: should variable URLs inside of groups be flattened or preserved in their nested lists? Default isFALSE.

value
  1. For name, a character (length-1 vector); for names, a character vector of equal length to the number of VariableGroups being modified; for entities, either a character vector of variable URLs or a list containing a combination of variable URLs and VariableGroups. Note that group names must be unique, should be greater than 0 characters long, and "ungrouped" is a reserved group name.

Value

  • entities returns Variable references and VariableGroups;

  • names returns group names;