pilltabs: Given a cross-table, outputs HTML code to display several...

Description Usage Arguments Details Value Author(s) Examples

Description

Given a two dimensions contingency tables, this function outputs HTML code to display, within a dynamic tabbed interface, the count, line row percentages, column percentages and chi-squared residuals tables.

Usage

1
2
pilltabs(tab, count = TRUE, rows = TRUE, cols = TRUE, chisq = TRUE,
  resid = TRUE, row.names = TRUE)

Arguments

tab

a two dimensions table object

count

wether or not to the display the count table

rows

wether or not to the display the row percentages table

cols

wether or not to the display the column percentages table

chisq

wether or not to the display the table chi-squared test results

resid

wether or not to the display the chi-squared residuals table

row.names

wether or not to display the table row names

Details

The function is intended to be called inside an rmarkdown document.

Value

No value is returned.

Author(s)

Julien Barnier <julien.barnier@ens-lyon.fr>

Examples

1
2
3
data(airquality)
tab <- table(airquality$Month, airquality$Ozone > 25)
pilltabs(tab)


Search within the rmdformats package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.