Learn R Programming

qacBase (version 1.0.3)

print.crosstab: Print a crosstab object

Description

This function prints the results of a calculated two-way frequency table.

Usage

# S3 method for crosstab
print(x, ...)

Arguments

x

An object of class crosstab

...

not currently used.

Value

No return value, called for side effects

Examples

Run this code
# NOT RUN {
mycrosstab <- crosstab(mtcars, cyl, gear, type = "freq", digits = 2)
print(mycrosstab)

mycrosstab <- crosstab(mtcars, cyl, gear, type = "rowpercent", digits = 3)
print(mycrosstab)
# }

Run the code above in your browser using DataLab