Change the default names of sets and elements.
Usage
rename_elements(object, old, new)
# S4 method for class 'TidySet'
rename_elements(object, old, new)
See also
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)
#> [1] "a" "b" "c" "d" "e" "f" "g"
TS2 <- rename_elements(TS, "a", "first")
name_elements(TS2)
#> [1] "first" "b" "c" "d" "e" "f" "g"