Learn R Programming

crunch (version 1.14.4)

dataset-variables: Access a Dataset's Variables Catalog

Description

Datasets contain collections of variables. For a few purposes, such as editing variables' metadata, it is helpful to access these variable catalogs more directly.

Usage

"variables"(x)
"variables"(x) <- value
"allVariables"(x)
"allVariables"(x) <- value

Arguments

x
a Dataset
value
For the setters, a VariableCatalog to assign.

Value

Getters return VariableCatalog; setters return x duly modified.

Details

variables gives just the active variables in the dataset, while allVariables, as the name suggests, yields all variables, including hidden variables.