Learn R Programming

Kmisc (version 0.5.0)

pxt: Make 2x2 HTML Contingency Table

Description

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

Usage

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

Run this code
x <- rbinom( 100, 2, 0.2 )
y <- rbinom( 100, 2, 0.2 )
pxt( kTable(x, y) )

Run the code above in your browser using DataLab