| elements | R Documentation |
Given TidySet retrieve the elements or substitute them.
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,missing'
nElements(object)
## S4 method for signature 'TidySet,logical'
nElements(object, all)
object |
A TidySet object. |
value |
Modification of the elements. |
all |
A logical value to count all elements or just those present. |
A data.frame with information about the elements
elements(TidySet): Retrieve the elements
elements(TidySet) <- value: Modify the elements
nElements(object = TidySet, all = missing): Return the number of elements
nElements(object = TidySet, all = logical): Return the number of elements
nElements()
Other slots:
relations(),
sets()
Other methods:
TidySet-class,
activate(),
add_column(),
add_relation(),
arrange.TidySet(),
cartesian(),
complement(),
complement_element(),
complement_set(),
element_size(),
filter.TidySet(),
group(),
group_by.TidySet(),
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()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.