Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

calculate.xtab

Calculate a crosstabulation


Description

Calculates the marginal totals and names for a crosstabulation.

Usage

calculate.xtab(v1,v2,varnames=NULL)

Arguments

v1,v2

The variables to be crosstabulated.

varnames

Labels for the variables (defaults to names(data))

Details

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.

Value

A list containing the value of table, the row and column marginals and the names of the variables.

Author(s)

Jim Lemon

See Also


prettyR

Pretty Descriptive Stats

v2.2-3
GPL (>= 2)
Authors
Jim Lemon <drjimlemon@gmail.com>, Philippe Grosjean <phgrosjean@sciviews.org>
Initial release
2019-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.