Description Usage Arguments Value Author(s) Examples
Returns a character vector with a fully html formatted
table. Essentially, it binds the outputs of
make.html.cells
,
make.html.rows
,
make.html.header
and
make.html.body
to the final table and
optionally assigns an id attribute. The above functions
are meant to format a data table so as it can be rendered
by external tools such as DataTables.js during a report
creation. It is meant for internal use.
1 | make.html.table(b, h = NULL, id = NULL)
|
b |
the table body as produced by
|
h |
the table header as produced by
|
id |
the table id attribute. |
A fully formatted html table.
Panagiotis Moulos
1 2 3 4 5 6 7 8 | data.matrix <- round(1000*matrix(runif(400),100,4))
rownames(data.matrix) <- paste("gene_",1:100,sep="")
colnames(data.matrix) <- c("C1","C2","T1","T2")
the.cells <- make.html.cells(data.matrix)
the.header <- make.html.header(the.cells[1,])
the.rows <- make.html.rows(the.cells)
the.body <- make.html.body(the.rows)
the.table <- make.html.table(the.body,the.header,id="my_table")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.