Description Usage Arguments Details Value Author(s)
function to convert a table object to an array object
1 | untab(a.table)
|
a.table |
an object of class table, such as generated by the table() or xtab() functions |
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.
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.
M.W.Rowe, mwr.stats@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.