Skip to contents

Rename elements.

Usage

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

Arguments

object

A TidySet object.

all

A logical value whether to return all elements or just those present.

...

Other arguments passed to methods.

value

A character with the new names for the elements.

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.4640136
#> 2        b    A 0.9176605
#> 3        c    A 0.9728442
#> 4        d    A 0.8190824
#> 5        e    A 0.9029238
#> 6        f    B 0.5813660
name_elements(TS) <- letters[1:6]