Learn R Programming

interfacer (version 0.3.3)

as.list.iface: Cast an iface to a plain list.

Description

Cast an iface to a plain list.

Usage

# S3 method for iface
as.list(x, ..., flatten = FALSE)

Value

a list representation of the iface input.

Arguments

x

object to be coerced or tested.

...

objects, possibly named.

flatten

get a list of lists representation instead of the dataframe column by column list.

Examples

Run this code
my_iface = iface( 
  col1 = integer + group_unique ~ "an integer column"
)

as.list(my_iface, flatten=TRUE)

Run the code above in your browser using DataLab