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

sets

Sets of the TidySet


Description

Given TidySet retrieve the sets or substitute them.

Usage

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'
nSets(object)

Arguments

object

A SetCollection object.

value

Modification of the sets.

Value

A data.frame with information from the sets.

Methods (by class)

  • TidySet: Retrieve the sets information

  • TidySet: Modify the sets information

  • TidySet: Return the number of sets

See Also

Other slots: elements(), relations()

Examples

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)

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.