Prepares the align to match the columns
Source:R/htmlTable_helpers_prepareAlign.R
prPrepareAlign.RdThe alignment may be tricky and this function therefore simplifies this process by extending/shortening the alignment to match the correct number of columns.
Arguments
- x
The matrix/data.frame with the data. For the
printandknit_printit takes a string of the classhtmlTableasxargument.- rnames
Default row names are generated from
rownames(x). If you provideFALSEthen it will skip the row names. Note: Fordata.framesif you dorownames(my_dataframe) <- NULLit still has row names. Thus you need to useFALSEif you want to supress row names fordata.frames.- 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(),
prAddEmptySpacerCell(),
prAddSemicolon2StrEnd(),
prEscapeHtml(),
prGetCgroupHeader(),
prGetRowlabelPos(),
prGetStyle(),
prPrepInputMatrixDimensions(),
prPrepareCgroup(),
prTblNo()