element_size {BaseSet} | R Documentation |
Calculates the size of the elements
Description
Assuming that the fuzzy values are probabilities, calculates the probability of being of different sizes for a given set.
Usage
element_size(object, elements = NULL)
## S4 method for signature 'TidySet'
element_size(object, elements = NULL)
Arguments
object |
A TidySet object. |
elements |
The element from which the length is calculated. |
Value
A list with the size of the elements or the probability of having that size.
Methods (by class)
-
element_size(TidySet)
: Calculates the number of sets an element appears withlength_set()
See Also
cardinality
Other sizes:
set_size()
Other methods:
TidySet-class
,
activate()
,
add_column()
,
add_relation()
,
arrange.TidySet()
,
cartesian()
,
complement_element()
,
complement_set()
,
complement()
,
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_relation()
,
remove_set()
,
rename_elements()
,
rename_set()
,
select.TidySet()
,
set_size()
,
sets()
,
subtract()
,
union()
Examples
relations <- data.frame(
sets = c(rep("A", 5), "B", "C"),
elements = c(letters[seq_len(6)], letters[6]),
fuzzy = runif(7)
)
a <- tidySet(relations)
element_size(a)