Learn R Programming

crunch (version 1.3.2)

describe-catalog: Get and set names, aliases on Catalog-type objects

Description

These methods let you get and set names and aliases for variables in a Dataset's catalog, or within Subvariables in an array variable. They work like the base R names methods.

Usage

## S3 method for class 'DatasetCatalog':
names(x)

## S3 method for class 'CrunchDataset': names(x)

## S3 method for class 'PermissionCatalog': emails(x)

## S3 method for class 'Subvariables': names(x)

## S3 method for class 'Subvariables': names(x) <- value

## S3 method for class 'Subvariables': aliases(x)

## S3 method for class 'Subvariables': aliases(x) <- value

## S3 method for class 'TeamCatalog': names(x)

## S3 method for class 'MemberCatalog': names(x)

## S3 method for class 'UserCatalog': names(x)

## S3 method for class 'UserCatalog': emails(x)

## S3 method for class 'VariableCatalog': names(x)

## S3 method for class 'VariableCatalog': names(x) <- value

## S3 method for class 'VariableCatalog': aliases(x)

## S3 method for class 'VariableCatalog': aliases(x) <- value

## S3 method for class 'VariableCatalog': descriptions(x)

## S3 method for class 'VariableCatalog': descriptions(x) <- value

## S3 method for class 'VariableCatalog': types(x)

Arguments

x
a VariableCatalog, Subvariables, or similar object
value
For the setters, an appropriate-length character vector to assign

Value

  • Getters return the character object in the specified slot; setters return x duly modified.

Details

Note that the names method on a Dataset returns the aliases of its variables by default. See the vignette on variables for more information.

See Also

Subvariables Categories names vignette("variables", package="crunch")