add_rowgroup: Add row groups

add_rowgroupR Documentation

Add row groups

Description

add_rowgroup Adds a row group to a layout object and assigns separate row group headers displayed when printing as html. The original object@body will be used as the first row group.

Usage

add_rowgroup(object, object2, rgroup_names = "")

Arguments

object

A layout object including a body containing the table.

object2

A layout object including a body containing in its @body the row group to be added.

rgroup_names

A character vector specifying the names (labels) to be used for the row groups.

Value

An S4 object with rows- and row group specifications added.

See Also

prepare for making a layout object and layout_html for printing a html table from such an object.

Other table layout: add_colgroup(), add_cols(), add_units(), firstrow_css(), layout_html(), order_by_vector(), order_layout(), prepare(), print_abbrev(), query_abbrev()

Examples

example_layout <- add_rowgroup(example_layout,
                              example_layout_width,
                              rgroup_names = c("Sepal Length", "Sepal Width"))

eeenilsson/layout documentation built on Sept. 26, 2022, 8:14 p.m.