setNames | R Documentation |
This is an alternative to assigning names(catalog) <- something
, suitable
for inclusion in a pipeline.
setNames(object, nm)
## S4 method for signature 'ShojiCatalog'
setNames(object, nm)
object |
A catalog object, such as |
nm |
A character vector of new names of the same length as the number of entities in the index |
object
, with the names of its children duly changed
cd()
and mv()
## Not run:
ds <- ds %>%
cd("Demographics") %>%
setNames(c("Gender (4 category)", "Birth year", "Race (5 category)"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.