Learn R Programming

BaseSet (version 0.9.0)

BaseSet-package: BaseSet: Working with Sets the Tidy Way

Description

Implements a class and methods to work with sets, doing intersection, union, complementary sets, power sets, cartesian product and other set operations in a "tidy" way. These set operations are available for both classical sets and fuzzy sets. Import sets from several formats or from other several data structures.

Arguments

Author

Maintainer: Lluís Revilla Sancho lluis.revilla@gmail.com (ORCID) [copyright holder]

Other contributors:

  • Zebulun Arendsee [reviewer]

  • Jennifer Chang [reviewer]

Details

It provides a class TidySet with methods to do operations with sets.

See Also

Examples

Run this code
set <- list("A" = letters[1:5], "B" = letters[4:7])
TS <- tidySet(set)
cardinality(TS)
intersection(TS, c("A", "B"))

Run the code above in your browser using DataLab