This function calculates a table's cell, row and column percentages as
well as expected values and returns all results as lists of tables.
Usage
table_values(tab, digits = 2)
Value
(Invisibly) returns a list with four tables:
cell a table with cell percentages of tab
row a table with row percentages of tab
col a table with column percentages of tab
expected a table with expected values of tab
Arguments
tab
Simple table or ftable of which
cell, row and column percentages as well as expected values are calculated.
Tables of class xtabs and other will be coerced to
ftable objects.