opts_data.table {constructive} | R Documentation |
Constructive options for class 'data.table'
Description
These options will be used on objects of class 'data.table'.
Usage
opts_data.table(
constructor = c("data.table", "next", "list"),
...,
selfref = FALSE
)
Arguments
constructor |
String. Name of the function used to construct the object, see Details section. |
... |
Additional options used by user defined constructors through the |
selfref |
Boolean. Whether to include the |
Details
Depending on constructor
, we construct the object as follows:
-
"data.table"
(default): Wrap the column definitions in adata.table()
call. -
"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.
Value
An object of class <constructive_options/constructive_options_data.table>