html_matrix_sk {exams.forge} | R Documentation |
html_matrix
Object Creation
Description
My 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)
Usage
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",
...
)
Arguments
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 |
Value
An html_matrix
object.
Examples
m <- matrix(1:6, ncol=2)
html_matrix_sk(m, title="", fmt=c("%.0f", "%.1f"))
[Package exams.forge version 1.0.10 Index]