powered by
This is an alternative to assigning names(catalog) <- something, suitable for inclusion in a pipeline.
names(catalog) <- something
setNames(object, nm)# S4 method for ShojiCatalog setNames(object, nm)
# S4 method for ShojiCatalog setNames(object, nm)
A catalog object, such as VariableFolder
VariableFolder
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
object
cd() and mv()
cd()
mv()
# NOT RUN { ds <- ds %>% cd("Demographics") %>% setNames(c("Gender (4 category)", "Birth year", "Race (5 category)")) # } # NOT RUN { # }
Run the code above in your browser using DataLab