Calculates the marginal totals and names for a crosstabulation.
calculate.xtab(v1,v2,varnames=NULL)
The variables to be crosstabulated.
Labels for the variables (defaults to names(data))
A list containing the value of table, the row and column marginals and the names of the variables.
calculate.xtab calls table for the base table, calculates the marginal totals and returns a list with these and the names of the variables that will be used by print.xtab.