Datasets contain collections of variables. For a few purposes, such as editing variables' metadata, it is helpful to access these variable catalogs more directly.
# S4 method for CrunchDataset
variables(x)# S4 method for CrunchDataset,VariableCatalog
variables(x) <- value
# S4 method for CrunchDataset
allVariables(x)
# S4 method for CrunchDataset,VariableCatalog
allVariables(x) <- value
# S4 method for SearchResults
variables(x)
a Dataset
For the setters, a VariableCatalog to assign.
Getters return VariableCatalog; setters return x
duly
modified.
variables
gives just the active variables in the dataset, while
allVariables
, as the name suggests, yields all variables, including
hidden variables.