Learn R Programming

htmlTable (version 1.0)

prPrepareAlign: Prepares the align to match the columns

Description

The alignment may be tricky and this function therefore simplifies this process by extending/shortening the alignment to match the correct number of columns.

Usage

prPrepareAlign(align, x, rnames, default_rn = "l")

Arguments

align
A character strings specifying column alignments, defaulting to paste(rep('c',ncol(x)),collapse='') to center. Valid alignments are l = left, c = center and r = right. You can also specify
x
The matrix/data.frame with the data
rnames
Default rownames are generated from rownames(x). If you provide FALSE then it will skip the rownames. Note: For data.frames if you do
default_rn
The default rowname alignment. This is an option as the header uses the same function and there may be differences in how the alignments should be implemented.

See Also

Other hidden helper functions for htmlTable: prAddCells; prAddSemicolon2StrEnd; prGetCgroupHeader; prGetRowlabelPos; prGetStyle; prPrepareCgroup; prTblNo