powered by
This function prints the results of a calculated two-way frequency table.
# S3 method for crosstab print(x, ...)
An object of class crosstab
crosstab
not currently used.
No return value, called for side effects
# 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