Learn R Programming

htmlTable (version 1.0)

prPrepareCgroup: Prepares the cgroup argument

Description

Due to the complicated structure of multilevel cgroups there some preparation for the cgroup options is required.

Usage

prPrepareCgroup(x, cgroup, n.cgroup, align.cgroup, css.cgroup)

Arguments

x
The matrix/data.frame with the data
cgroup
A vector or a matrix 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
n.cgroup
An integer vector or matrix 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 colu
align.cgroup
The justification of the cgroups
css.cgroup
The same as css.class but for cgroup formatting.

Value

  • list(cgroup, n.cgroup, align.cgroup, cgroup_spacer_cells)

See Also

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