View source: R/html_matrix_sk.R
html_matrix_sk | R Documentation |
html_matrix
Object CreationMy personal pipe creating an html_matrix
object. Note that the length of fmt
must be either nrow(m)
or ncol(m)
depending on byrow
.
html_matrix(m) tooltip(sprintf(tooltip, nrow(m), ncol(m))) hm_cell(fmt=fmt, byrow=byrow)
html_matrix_sk(
m,
title,
fmt,
byrow = TRUE,
tooltip = "Die Tabelle hat %.0f Zeilen und %.0f Spalten",
...
)
lmatrix(
m,
title,
fmt,
byrow = TRUE,
tooltip = "Die Tabelle hat %.0f Zeilen und %.0f Spalten",
...
)
m |
vector, matrix, array, table or html_matrix: input |
title |
character: text for the upper left entry |
fmt |
character: text format for rows (or columns) |
byrow |
logical: |
tooltip |
character: text for tooltip with column and row numbers (default: |
... |
further parameters given to |
An html_matrix
object.
m <- matrix(1:6, ncol=2)
html_matrix_sk(m, title="", fmt=c("%.0f", "%.1f"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.