Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cardinality

Cardinality or membership of sets


Description

Calculates the membership of sets according to the logic defined in FUN.

Usage

cardinality(object, sets = NULL, ...)

## S4 method for signature 'TidySet'
cardinality(object, sets, FUN = "sum", ...)

Arguments

object

A TidySet object.

sets

Character vector with the name of the sets.

...

Other arguments passed to FUN.

FUN

Function that returns a single numeric value given a vector of fuzzy values.

Methods (by class)

  • TidySet: Cardinality of sets

See Also

Examples

rel <- list(A = letters[1:3], B = letters[1:2])
TS <- tidySet(rel)
cardinality(TS, "A")

BaseSet

Working with Sets the Tidy Way

v0.0.16
MIT + file LICENSE
Authors
Lluís Revilla Sancho [aut, cre] (<https://orcid.org/0000-0001-9747-2570>), Zebulun Arendsee [rev], Jennifer Chang [rev]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.