pxt: Make 2x2 HTML Contingency Table

Description Usage Arguments See Also Examples

View source: R/html_extras.R

Description

Function for outputting cross-tabulated tables as marked-up HTML. CSS styling can be used to make these tables look especially nice.

Usage

1
pxt(x, class = "twoDtable", id = NULL, ...)

Arguments

x

a 2x2 table; typically something returned from kTable(x,y)

class

class to be passed to HTML table; used for CSS styling.

id

id to be passed to HTML table; used for CSS styling.

...

optional arguments passed to makeHTMLTable.

See Also

kTable

Examples

1
2
3
x <- rbinom( 100, 2, 0.2 )
y <- rbinom( 100, 2, 0.2 )
pxt( kTable(x, y) )

Kmisc documentation built on May 29, 2017, 1:43 p.m.

Related to pxt in Kmisc...