Skip to contents

Given a TidySet remove sets and the related relations and if required also the elements

Usage

remove_set(object, sets, ...)

# S4 method for class 'TidySet,characterORfactor'
remove_set(object, sets)

Arguments

object

A TidySet object.

sets

The sets to be removed.

...

Placeholder for other arguments that could be passed to the method. Currently not used.

Value

A TidySet object.

Methods (by class)

  • remove_set(object = TidySet, sets = characterORfactor): Removes everything related to a set

Examples

relations <- data.frame(
    sets = c("A", "A", "B", "B", "C", "C"),
    elements = letters[seq_len(6)],
    fuzzy = runif(6)
)
TS <- tidySet(relations)
remove_set(TS, "B")
#>   elements sets      fuzzy
#> 1        a    A 0.08084496
#> 2        b    A 0.65598263
#> 3        e    C 0.32931716
#> 4        f    C 0.97947422