Skip to contents

Given a TidySet removes relations between elements and sets

Usage

remove_relation(object, elements, sets, ...)

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

Arguments

object

A TidySet object

elements

The elements of the sets.

sets

The name of the new set.

...

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

Value

A TidySet object.

Methods (by class)

  • remove_relation( object = TidySet, elements = characterORfactor, sets = characterORfactor ): Removes a relation between elements and sets.

Examples

relations <- data.frame(
    sets = c(rep("A", 5), "B"),
    elements = letters[seq_len(6)],
    fuzzy = runif(6)
)
TS <- tidySet(relations)
remove_relation(TS, "A", "a")
#>   elements sets     fuzzy
#> 1        a    A 0.5898376
#> 2        b    A 0.7591584
#> 3        c    A 0.8360753
#> 4        d    A 0.7628195
#> 5        e    A 0.4172699
#> 6        f    B 0.1380748