tab.cross: Cross-table

Description Usage Arguments Value

Description

tab.cross performs a simple two-way cross tabulation of two factor vectors. Easy printing and plotting is helped by simple formatting.

Usage

1
2
tab.cross(x, y, frequencies = TRUE, prop.margin = 1, digits = 2,
  sum.margin = 1:2, sum.label = "Total")

Arguments

x

a factor

y

a factor

prop.margin

index, or vector of indices to generate margin for, prop.table

digits

the maximum number of digits, round

sum.margin

vector of dimensions over which to form margins. Margins are formed in the order in which dimensions are specified in margin. addmargins

sum.label

is the label of the margins

freq

if TRUE frequencies placed within ()

Value

a table with 2 dimensions


antongrau/soc.report documentation built on May 10, 2019, 12:25 p.m.