Learn R Programming

crunch (version 1.14.4)

names,BatchCatalog-method: 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

"names"(x)
"names"(x)
"names"(x)
"names"(x) <- value
"emails"(x)
"aliases"(x)
"aliases"(x) <- value
"names"(x)
"aliases"(x)
"aliases"(x) <- value
"notes"(x)
"notes"(x) <- value
"descriptions"(x)
"descriptions"(x) <- value
"types"(x)
"ids"(x)
"names"(x)
"descriptions"(x)
"timestamps"(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. This is controlled by getOption("crunch.namekey.dataset"), which is "alias" by default. Set options(crunch.namekey.dataset="name") if you wish to use variable names. See the vignette on variables for more information.

See Also

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