Skip to contents

Change the default names of sets and elements.

Usage

rename_set(object, old, new)

# S4 method for class '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)

  • rename_set(TidySet): Rename sets

Examples

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