| elements {BaseSet} | R Documentation |
Elements of the TidySet
Description
Given TidySet retrieve the elements or substitute them.
Usage
elements(object)
elements(object) <- value
## S4 method for signature 'TidySet'
elements(object)
## S4 replacement method for signature 'TidySet'
elements(object) <- value
replace_elements(object, value)
## S4 method for signature 'TidySet'
nElements(object)
Arguments
object |
A TidySet object. |
value |
Modification of the elements. |
Value
A data.frame with information about the elements
Methods (by class)
-
elements(TidySet): Retrieve the elements -
elements(TidySet) <- value: Modify the elements -
nElements(TidySet): Return the number of elements
See Also
Other slots:
relations(),
sets()
Other methods:
TidySet-class,
activate(),
add_column(),
add_relation(),
arrange.TidySet(),
cartesian(),
complement_element(),
complement_set(),
complement(),
element_size(),
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(),
remove_set(),
rename_elements(),
rename_set(),
select.TidySet(),
set_size(),
sets(),
subtract(),
union()
Examples
TS <- tidySet(list(A = letters[1:5], B = letters[2:10]))
elements(TS)
elements(TS) <- data.frame(elements = letters[10:1])
TS2 <- replace_elements(TS, data.frame(elements = letters[1:11]))
nElements(TS)
nElements(TS2)