pilltabs | R Documentation |
Given a two dimensions contingency table, this function outputs HTML code to display, within a dynamic tabbed interface, the count, row percentages, column percentages and chi-squared residuals tables.
pilltabs( tab, count = TRUE, rows = TRUE, cols = TRUE, chisq = TRUE, resid = TRUE, row.names = TRUE )
tab |
a two dimensions table object |
count |
whether or not to display the count table |
rows |
whether or not to display the row percentages table |
cols |
whether or not to display the column percentages table |
chisq |
whether or not to display the table chi-squared test results |
resid |
whether or not to display the chi-squared residuals table |
row.names |
whether or not to display the table row names |
The function is intended to be called inside an rmarkdown document.
No value is returned.
data(airquality) tab <- table(airquality$Month, airquality$Ozone > 25) pilltabs(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.