setNames: Change the name of the entities in a catalog

setNamesR Documentation

Change the name of the entities in a catalog

Description

This is an alternative to assigning names(catalog) <- something, suitable for inclusion in a pipeline.

Usage

setNames(object, nm)

## S4 method for signature 'ShojiCatalog'
setNames(object, nm)

Arguments

object

A catalog object, such as VariableFolder

nm

A character vector of new names of the same length as the number of entities in the index

Value

object, with the names of its children duly changed

See Also

cd() and mv()

Examples

## Not run: 
ds <- ds %>%
    cd("Demographics") %>%
    setNames(c("Gender (4 category)", "Birth year", "Race (5 category)"))

## End(Not run)


Crunch-io/rcrunch documentation built on April 1, 2024, 1:14 a.m.