Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rename_set

Rename sets


Description

Change the default names of sets and elements.

Usage

rename_set(object, old, new)

## S4 method for signature 'TidySet'
rename_set(object, old, new)

Arguments

object

A TidySet object.

old

A character vector of to be renamed.

new

A character vector of with new names.

Value

A TidySet object.

Methods (by class)

  • TidySet: Rename sets

See Also

Other renames: rename_elements()

Examples

x <- list("A" = letters[1:5], "B" = letters[3:7])
TS <- tidySet(x)
name_sets(TS)
TS2 <- rename_set(TS, "A", "C")
name_sets(TS2)

BaseSet

Working with Sets the Tidy Way

v0.0.16
MIT + file LICENSE
Authors
Lluís Revilla Sancho [aut, cre] (<https://orcid.org/0000-0001-9747-2570>), Zebulun Arendsee [rev], Jennifer Chang [rev]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.