These options will be used on objects of class 'data.frame'.
Usage
opts_data.frame(
constructor = c("data.frame", "read.table", "next", "list"),
...,
recycle = TRUE
)
Details
Depending on constructor
, we construct the object as follows:
"data.frame"
(default): Wrap the column definitions in adata.frame()
call. If some columns are lists or data frames, we wrap the column definitions intibble::tibble()
. then useas.data.frame()
."read.table"
: We build the object usingread.table()
if possible, or fall back todata.frame()
."next"
: Use the constructor for the next supported class. Call.class2()
on the object to see in which order the methods will be tried."list"
: Uselist()
and treat the class as a regular attribute.