sets | R Documentation |
Given TidySet retrieve the sets or substitute them.
sets(object)
sets(object) <- value
## S4 method for signature 'TidySet'
sets(object)
## S4 replacement method for signature 'TidySet'
sets(object) <- value
replace_sets(object, value)
## S4 method for signature 'TidySet,missing'
nSets(object)
## S4 method for signature 'TidySet,logical'
nSets(object, all)
object |
A |
value |
Modification of the sets. |
all |
A logical value whether it should return all sets or only those present. |
A data.frame
with information from the sets.
sets(TidySet)
: Retrieve the sets information
sets(TidySet) <- value
: Modify the sets information
nSets(object = TidySet, all = missing)
: Return the number of sets
nSets(object = TidySet, all = logical)
: Return the number of sets
nSets()
Other slots:
elements()
,
relations()
Other methods:
TidySet-class
,
activate()
,
add_column()
,
add_relation()
,
arrange.TidySet()
,
cartesian()
,
complement()
,
complement_element()
,
complement_set()
,
element_size()
,
elements()
,
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()
,
subtract()
,
union()
TS <- tidySet(list(A = letters[1:5], B = letters[2:10]))
sets(TS)
sets(TS) <- data.frame(sets = c("B", "A"))
TS2 <- replace_sets(TS, data.frame(sets = c("A", "B", "C")))
sets(TS2)
nSets(TS)
nSets(TS2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.