Due to the complicated structure of multilevel cgroups there some preparation for the cgroup options is required.
Arguments
- x
The matrix/data.frame with the data. For the
printandknit_printit takes a string of the classhtmlTableasxargument.- cgroup
A vector, matrix or list of character strings defining major column header. The default is to have none. These elements are also known as column spanners. If you want a column not to have a spanner then put that column as "". If you pass cgroup and
n.crgroupas matrices you can have column spanners for several rows. See cgroup section below for details.- n.cgroup
An integer vector, matrix or list containing the number of columns for which each element in cgroup is a heading. For example, specify
cgroup=c("Major_1","Major_2"),n.cgroup=c(3,3)if"Major_1"is to span columns 1-3 and"Major_2"is to span columns 4-6.rowlabeldoes not count in the column numbers. You can omitn.cgroupif all groups have the same number of columns. If then.cgroupis one less than the number of columns in the matrix/data.frame then it automatically adds those.
See also
Other hidden helper functions for htmlTable:
prAddCells(),
prAddEmptySpacerCell(),
prAddSemicolon2StrEnd(),
prEscapeHtml(),
prGetCgroupHeader(),
prGetRowlabelPos(),
prGetStyle(),
prPrepInputMatrixDimensions(),
prPrepareAlign(),
prTblNo()