Rename sets.
Usage
name_sets(object, all, ...) <- value
See also
Other names:
name_elements<-()
,
name_elements()
,
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_elements<-()
,
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.866615703
#> 2 b a 0.238453106
#> 3 c a 0.004496308
#> 4 d a 0.943516464
#> 5 e a 0.438137200
#> 6 f b 0.750603328
name_sets(TS) <- LETTERS[1:2]