untab: untab: Convert Table To Array

Description Usage Arguments Details Value Author(s)

View source: R/untab.R

Description

function to convert a table object to an array object

Usage

1
untab(a.table)

Arguments

a.table

an object of class table, such as generated by the table() or xtab() functions

Details

Table objects tend to get automatically converted into data.frames by functions. These data.frames contain columns with factor levels and frequencies that get in the way. as.array() doesn't do anything to tables, because tables are already arrays. This function gets around these issues.

Value

Returns an array with the same dimensions and dimnames as a.table, that is NOT a table object, and may thus be manipulated like an array.

Author(s)

M.W.Rowe, mwr.stats@gmail.com


mwrowe/microRutils documentation built on June 12, 2021, 2:41 p.m.