Learn R Programming

BaseSet (version 1.0.0)

names.TidySet: Names of a TidySet

Description

Retrieve the column names of a slots of a TidySet.

Usage

# S3 method for TidySet
names(x)

Value

A vector with the names of the present columns of the sets, elements and relations. If a slot is active it only returns the names of that slot.

Arguments

x

A TidySet object.

See Also

Examples

Run this code
relations <- data.frame(
    sets = c(rep("a", 5), "b"),
    elements = letters[seq_len(6)],
    fuzzy = runif(6)
)
TS <- tidySet(relations)
names(TS)
names(activate(TS, "sets"))

Run the code above in your browser using DataLab