Learn R Programming

Kmisc (version 0.5.0)

p1t: Make 1D HTML Table

Description

This tabling function is intended for the output of kTable, as generated when only one 'data' argument is passed.

Usage

p1t(x, class = "table table-condensed table-striped table-hover", id = NULL, ...)

Arguments

x
a data.frame, typically output of kTable.
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, makeHTMLTable

Examples

Run this code
y <- factor( rbinom( 100, 2, 0.2 ) )
p1t( kTable( y ) )

Run the code above in your browser using DataLab