htmlify_rownames: Converts hogwash rownames and dimnames to HTML friendly names

Description Usage Arguments Details Examples

View source: R/htmlify_rownames.R

Description

Converts hogwash rownames and dimnames to HTML friendly names

Usage

1
htmlify_rownames(x, ef = 2)

Arguments

x

An array or data.frame

ef

Numeric. The expansion factor. Number of HTML spaces for each leading space.

Details

Leading spaces are replaced with   so that the table renders properly in HTML

Examples

1
2
3
4
A <- array(1:6, dim = c(3,2))
rownames(A) <- c("A","  B","  C")
colnames(A) <- c("X1","X2")
htmlify_rownames(A)

thomasgstewart/tgsify documentation built on June 18, 2020, 11:10 a.m.