make_table: Make a table

View source: R/rbitr_helpers.R

make_tableR Documentation

Make a table

Description

Makes a two-column table that will be justified when rendered with a monospaced font.

Usage

make_table(col_a, col_b)

Arguments

col_a

A character vector of the rows of column A.

col_b

A character vector of the rows of column B.

Details

A character string will be generated that produces a two-column table when rendered in a monospaced font. The first column will be right- justified, and the second column will be left-justified. Rows will be separated by newline characters ('\n').

Value

A single-element character vector of text that will be a two-column table when rendered with a monospaced font.

Examples

cat(make_table(c('1', '2', '11'), c('one', 'two', 'eleven')))

dryguy/rbitr documentation built on Oct. 15, 2024, 6:18 a.m.