Learn R Programming

BaseSet (version 1.0.0)

as.list.TidySet: Convert to list

Description

Converts a TidySet to a list.

Usage

# S3 method for TidySet
as.list(x, ...)

Value

A list.

Arguments

x

A TidySet object to be coerced to a list.

...

Placeholder for other arguments that could be passed to the method. Currently not used.

Examples

Run this code
r <- data.frame(sets = c("A", "A", "A", "B", "C"),
             elements = c(letters[1:3], letters[2:3]),
             fuzzy = runif(5),
             info = rep_len(c("important", "very important"), 5))
TS <- tidySet(r)
TS
as.list(TS)

Run the code above in your browser using DataLab