remove_relation {BaseSet} | R Documentation |
Remove a relation
Description
Given a TidySet removes relations between elements and sets
Usage
remove_relation(object, elements, sets, ...)
## S4 method for signature 'TidySet,characterORfactor,characterORfactor'
remove_relation(object, elements, sets)
Arguments
object |
A TidySet object |
elements |
The elements of the sets. |
sets |
The name of the new set. |
... |
Placeholder for other arguments that could be passed to the method. Currently not used. |
Value
A TidySet
object.
Methods (by class)
-
remove_relation( object = TidySet, elements = characterORfactor, sets = characterORfactor )
: Removes a relation between elements and sets.
See Also
Other remove functions:
remove_element()
,
remove_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_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)
remove_relation(TS, "A", "a")