Learn R Programming

textab (version 1.0.1)

+.tt_: Concatenate textab blocks vertically.

Description

Concatenate textab blocks vertically.

Usage

# S3 method for tt_
+(upper_block, lower_block)

Value

The output is a textab block, formed by vertically concatenating the two provided textab blocks.

Arguments

upper_block

The upper block of the tabular row.

lower_block

The lower block of the tabular row.

Examples

Run this code
# define some textab blocks
first_block = TexRow(c(1,2))
first_block

second_block = TexRow(3)
second_block

third_block = TexRow(4)
third_block

# concatenate two blocks vertically
first_block + second_block

# concatenate three blocks vertically
first_block + second_block + third_block

# concatenate both horizontally and vertically
# note: horizontal concatenation takes precedence over vertical concatenation
first_block + second_block / third_block

Run the code above in your browser using DataLab