View source: R/htmlify_rownames.R
htmlify_rownames | R Documentation |
Converts hogwash rownames and dimnames to HTML friendly names
htmlify_rownames(x, ef = 2)
x |
An array or data.frame |
ef |
Numeric. The expansion factor. Number of HTML spaces for each leading space. |
Leading spaces are replaced with
so that the table renders properly in HTML
A <- array(1:6, dim = c(3,2))
rownames(A) <- c("A"," B"," C")
colnames(A) <- c("X1","X2")
htmlify_rownames(A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.