Given a TidySet remove sets and the related relations and if required also the elements
Usage
remove_set(object, sets, ...)
# S4 method for class 'TidySet,characterORfactor'
remove_set(object, sets)
Methods (by class)
remove_set(object = TidySet, sets = characterORfactor)
: Removes everything related to a set
See also
Other remove functions:
remove_element()
,
remove_relation()
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()
,
rename_elements()
,
rename_set()
,
select.TidySet()
,
set_size()
,
sets()
,
subtract()
,
union()
Examples
relations <- data.frame(
sets = c("A", "A", "B", "B", "C", "C"),
elements = letters[seq_len(6)],
fuzzy = runif(6)
)
TS <- tidySet(relations)
remove_set(TS, "B")
#> elements sets fuzzy
#> 1 a A 0.08084496
#> 2 b A 0.65598263
#> 3 e C 0.32931716
#> 4 f C 0.97947422