add_colgroup: Add column group

add_colgroupR Documentation

Add column group

Description

add_colgroup Adds a layout objet to another layout object, as a new column group.

Usage

add_colgroup(object, object2, position = "left")

Arguments

object

A layout object including a body containing the table.

object2

A layout object including a body containing the table. The column used for matching is not added.

position

A character value 'left' or 'right' specifying where the new columns should be added. Any specification other than 'right' will be interpreted as 'left'.

by

A character element with the name of the column specifying the column to use for joining (must be named identically in the layout object and the data frame containing the columns to be added).

Value

A layout object with new column group added.

See Also

prepare for making a layout object.

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

Examples

add_colgroup(example_layout, example_layout, position = 'left')

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