add_title: Add titles to the tab. Title text is provided as a character...

Description Usage Arguments Examples

Description

Add titles to the tab. Title text is provided as a character vector, with each element being a row of the title

Usage

1
add_title(tab, title_text, title_style_names = NULL)

Arguments

tab

The core tab object

title_text

A character vector. Each element is a row of the title

title_style_names

A character vector. Each elemment is a style_name

Examples

1
2
3
4
5
crosstab <- read.csv(system.file("extdata", "example_crosstab.csv", package="xltabr"))
tab <- initialise()
title_text <- c("Main title on first row", "subtitle on second row")
title_style_names <- c("title", "subtitle")
tab <- add_title(tab, title_text, title_style_names)

moj-analytical-services/xltabr documentation built on May 9, 2019, 9:59 p.m.