powered by
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, ... )
html_matrix object
two dimensional table object
character: names of row and column variable
character: final line (default: NULL)
NULL
numeric: font size (default: 1)
1
character: table title (default: '')
''
character: add row sums at the right (default: NULL)
character: add column sums at the bottom (default: NULL)
character: format string for sprintf (default: "%.0f")
sprintf
"%.0f"
character: add the grand total at the bottom left (default: NULL)
further parameters given to html_matrix
html_matrix
htab <- htmlTable(apply(Titanic,1:2,sum), c("Sex", "Class"), title="Titanic") toHTML(htab, browser=interactive())
Run the code above in your browser using DataLab