Learn R Programming

crunch (version 1.20.0)

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

# 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)

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 returns all variables, including hidden variables.