Given TidySet retrieve the sets or substitute them.

sets(object)

sets(object) <- value

# S4 method for TidySet
sets(object)

# S4 method for TidySet
sets(object) <- value

replace_sets(object, value)

# S4 method for 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

Examples

TS <- tidySet(list(A = letters[1:5], B = letters[2:10])) sets(TS)
#> sets #> 1 A #> 2 B
sets(TS) <- data.frame(sets = c("B", "A")) TS2 <- replace_sets(TS, data.frame(sets = c("A", "B", "C"))) sets(TS2)
#> sets #> 1 A #> 2 B #> 3 C
nSets(TS)
#> [1] 2
nSets(TS2)
#> [1] 3