Learn R Programming

Kmisc (version 0.1.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, include.rownames = FALSE,
    include.colnames = FALSE, class = "twoDtable",
    id = NULL, ...)

Arguments

x
a 2x2 table; typically something returned from kTable(x,y)
include.rownames
include row names?
include.colnames
include col names?
class
class to be passed to HTML table; used for CSS styling
id
id to be classed 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