opts_table: Constructive options for class 'table'

View source: R/s3-table.R

opts_tableR Documentation

Constructive options for class 'table'

Description

These options will be used on objects of class 'table'.

Usage

opts_table(constructor = c("as.table", "next"), ...)

Arguments

constructor

String. Name of the function used to construct the object, see Details section.

...

Additional options used by user defined constructors through the opts object

Details

Depending on constructor, we construct the object as follows:

  • "as.table" (default): We build the object using as.table() on an array or a matrix. Objects of class "xtabs" are built this way too, their class and "call" attribute are then repaired.

  • "next" : Use the constructor for the next supported class. Call .class2() on the object to see in which order the methods will be tried. This will usually be equivalent to opts_matrix("matrix") or opts_array("array").

Value

An object of class <constructive_options/constructive_options_table>


constructive documentation built on Oct. 22, 2026, 5:07 p.m.