data.frame
in a format that can
be used with utility HTML generation functions.kTable(x, y = NULL, deparse.level = 2,
top.left.cell = "", col.names = NULL, row.names = NULL,
left.label = NULL, top.label = NULL, google = FALSE)
x
variable to build a table ony
variable to build a table
on. Used for 2x2 contingency tables.table
;
deparse.level=2
allows us to pass through variable
namesx
. Only used for 2D tables
(ie, when y
is not null)y
. Only used for 2D tables
(ie, when y
is not null)gvistable
from the googleVis
package.x <- rbinom(100, size=2, p=0.1)
y <- rbinom(100, size=2, p=0.1)
## try these in an R markdown document for best results
kTable(x)
my_table <- kTable(x, y, top.left.cell="foo", left.label="bar", top.label="baz")
pxt( my_table )
Run the code above in your browser using DataLab