Description Usage Arguments Details Value Examples
Creates an HTML view on a two dimensional table.
1 2 | table2html(tab, colsums = NULL, rowsums = NULL, bg = c("white",
"lightGray"), border = "grey", style = "width:95%;margin:10px;", ...)
|
tab |
table: table to show |
colsums |
character: If non-NULL the column sums will be computed and the contents of |
rowsums |
character: If non-NULL the rows sums will be computed and the contents of |
bg |
colors: background color for table rows, will be recycled (default: |
border |
color: background color for header cells (default: |
style |
character: style information for the table (default: |
... |
further parameters used for the |
In case of a non-numeric table colsums
and rowsums
is ignored.
character: the HTML code for the table
1 2 3 4 5 | tab <- HairEyeColor[,,'Female']
htmltab <- table2html(tab, colsums='', rowsums='')
sink('HairEye.html')
cat(htmltab)
sink()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.