Skip to contents

Retrieve the name of the sets.

Usage

name_sets(object, all, ...)

# S4 method for class 'TidySet,logical'
name_sets(object, all = TRUE)

# S4 method for class 'TidySet,missing'
name_sets(object, all)

# S4 method for class 'TidySet,logical,characterORfactor'
name_sets(object, all) <- value

# S4 method for class 'TidySet,missing,characterORfactor'
name_sets(object, all) <- value

Arguments

object

A TidySet object.

all

A logical value if all sets should be reported or only those present.

...

Other arguments passed to methods.

value

A character with the new names for the sets.

Value

A TidySet object.

Methods (by class)

  • name_sets(object = TidySet, all = logical): Name sets

  • name_sets(object = TidySet, all = missing): Name sets

  • name_sets(object = TidySet, all = logical) <- value: Rename sets

  • name_sets(object = TidySet, all = missing) <- value: Rename sets

Examples

relations <- data.frame(
    sets = c(rep("A", 5), "B"),
    elements = letters[seq_len(6)],
    fuzzy = runif(6)
)
TS <- tidySet(relations)
name_sets(TS)
#> [1] "A" "B"