addTableNumber: Add table number

View source: R/addTableNumber.R

addTableNumberR Documentation

Add table number

Description

Prepends a table counter label to a table caption.

Usage

addTableNumber(caption, table.counter.str.default = "Table %s: ")

Arguments

caption

table caption

table.counter.str.default

the default string preceding the table count

Details

The table counter automatically increments based on the number of existing tables that have already called using addTableNumber.

Value

A caption with a table counter prepended to its text.

Author(s)

Samuel Leung

Examples

addTableNumber("Overall Survival Hazard Ratios")
addTableNumber("Correlation Heatmap", table.counter.str.default = "Figure %s:
")

TalhoukLab/biostatUtil documentation built on April 14, 2025, 4:15 a.m.