Skip to contents

Given TidySet retrieve the relations or substitute them. TidySet() object

Usage

relations(object)

relations(object) <- value

# S4 method for TidySet
relations(object)

replace_relations(object, value)

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

# S4 method for TidySet
nRelations(object)

Arguments

object

Object to be coerced or tested.

value

Modification of the relations.

Value

A data.frame with information about the relations between elements and sets.

Methods (by class)

  • relations(TidySet): Retrieve the relations

  • relations(TidySet) <- value: Modify the relations

  • nRelations(TidySet): Return the number of unique relations

Examples

TS <- tidySet(list(A = letters[1:2], B = letters[5:7]))
relations(TS)
#>   elements sets fuzzy
#> 1        a    A     1
#> 2        b    A     1
#> 3        e    B     1
#> 4        f    B     1
#> 5        g    B     1