rename_elements {BaseSet}R Documentation

Rename elements

Description

Change the default names of sets and elements.

Usage

rename_elements(object, old, new)

## S4 method for signature 'TidySet'
rename_elements(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)

See Also

name_elements()

Other renames: rename_set()

Other names: name_elements<-(), name_elements(), name_sets<-(), name_sets(), rename_set()

Other methods: TidySet-class, activate(), add_column(), add_relation(), arrange.TidySet(), cartesian(), complement_element(), complement_set(), complement(), element_size(), elements(), filter.TidySet(), group_by.TidySet(), group(), incidence(), intersection(), is.fuzzy(), is_nested(), move_to(), mutate.TidySet(), nElements(), nRelations(), nSets(), name_elements<-(), name_sets<-(), name_sets(), power_set(), pull.TidySet(), relations(), remove_column(), remove_element(), remove_relation(), remove_set(), rename_set(), select.TidySet(), set_size(), sets(), subtract(), union()

Examples

x <- list("A" = letters[1:5], "B" = letters[3:7])
TS <- tidySet(x)
name_elements(TS)
TS2 <- rename_elements(TS, "a", "first")
name_elements(TS2)

[Package BaseSet version 0.9.0 Index]