Rename elements.
Usage
name_elements(object, all, ...) <- value
See also
Other names:
name_elements()
,
name_sets<-()
,
name_sets()
,
rename_elements()
,
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_sets<-()
,
name_sets()
,
power_set()
,
pull.TidySet()
,
relations()
,
remove_column()
,
remove_element()
,
remove_relation()
,
remove_set()
,
rename_elements()
,
rename_set()
,
select.TidySet()
,
set_size()
,
sets()
,
subtract()
,
union()
Examples
relations <- data.frame(
sets = c(rep("A", 5), "B"),
elements = letters[seq_len(6)],
fuzzy = runif(6)
)
TS <- tidySet(relations)
TS
#> elements sets fuzzy
#> 1 a A 0.4640136
#> 2 b A 0.9176605
#> 3 c A 0.9728442
#> 4 d A 0.8190824
#> 5 e A 0.9029238
#> 6 f B 0.5813660
name_elements(TS) <- letters[1:6]