htmlTable | R Documentation |
Creates a HTML table from a two dimensional table object.
htmlTable( tab, vars = NULL, lines = NULL, cex = 1, title = "", rowsum = NULL, colsum = NULL, fmt = "%.0f", total = NULL, ... )
tab |
two dimensional table object |
vars |
character: names of row and column variable |
lines |
character: final line (default: |
cex |
numeric: font size (default: |
title |
character: table title (default: |
rowsum |
character: add row sums at the right (default: |
colsum |
character: add column sums at the bottom (default: |
fmt |
character: format string for |
total |
character: add the grand total at the bottom left (default: |
... |
further parameters given to |
html_matrix object
htab <- htmlTable(apply(Titanic,1:2,sum), c("Sex", "Class"), title="Titanic") toHTML(htab, browser=interactive())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.