Skip to contents

Rename sets.

Usage

name_sets(object, all, ...) <- value

Arguments

object

A TidySet object.

all

A logical value whether it should return all sets present.

...

Other arguments passed to methods.

value

A character with the new names for the sets.

Value

A TidySet object.

Examples

relations <- data.frame(
    sets = c(rep("a", 5), "b"),
    elements = letters[seq_len(6)],
    fuzzy = runif(6)
)
TS <- tidySet(relations)
TS
#>   elements sets       fuzzy
#> 1        a    a 0.866615703
#> 2        b    a 0.238453106
#> 3        c    a 0.004496308
#> 4        d    a 0.943516464
#> 5        e    a 0.438137200
#> 6        f    b 0.750603328
name_sets(TS) <- LETTERS[1:2]