as_tables: As tables

View source: R/tables.R

as_tablesR Documentation

As tables

Description

As tables

Usage

as_tables(x, tdim, conditional, rev = FALSE, ...)

Arguments

x

array or matrix object

tdim

dimensions for each table

conditional

integer vector of indices that are conditional

rev

logical: should output move through each table fastest?

...

other arguments for methods

Details

Transforms a vector, matrix or array into a tables object with the specified dimensions. Note that if rev = TRUE then the final dimension is (by default) used to index the tables objects, and otherwise the first dimension..

Value

A tables object.


rje42/contingency documentation built on Sept. 9, 2024, 6:32 p.m.