this is a replacement for table
that allows empty
cells because the margins have been specified. The input vectors a
and b
must be the same length, this function does no argument checking.
cross_tab_margins(a, b, a_margin, b_margin)
one set of observations
another set of observations
number of distinct values of a (rows)
number of distinct values of b (cols)