relations {BaseSet} | R Documentation |
Relations of the TidySet
Description
Given TidySet retrieve the relations or substitute them.
TidySet()
object
Usage
relations(object)
relations(object) <- value
## S4 method for signature 'TidySet'
relations(object)
replace_relations(object, value)
## S4 replacement method for signature 'TidySet'
relations(object) <- value
## S4 method for signature 'TidySet'
nRelations(object)
Arguments
object |
Object to be coerced or tested. |
value |
Modification of the relations. |
Value
A data.frame
with information about the relations between
elements and sets.
Methods (by class)
-
relations(TidySet)
: Retrieve the relations -
relations(TidySet) <- value
: Modify the relations -
nRelations(TidySet)
: Return the number of unique relations
See Also
Other slots:
elements()
,
sets()
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()
,
remove_column()
,
remove_element()
,
remove_relation()
,
remove_set()
,
rename_elements()
,
rename_set()
,
select.TidySet()
,
set_size()
,
sets()
,
subtract()
,
union()
Examples
TS <- tidySet(list(A = letters[1:2], B = letters[5:7]))
relations(TS)