htmlify_rownames: Converts hogwash rownames and dimnames to HTML friendly names

View source: R/htmlify_rownames.R

htmlify_rownamesR Documentation

Converts hogwash rownames and dimnames to HTML friendly names

Description

Converts hogwash rownames and dimnames to HTML friendly names

Usage

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

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 Aug. 1, 2024, 4:55 p.m.