latex_add_caption: Add a caption to a 'stargazer::stargazer()' output.

Description Usage Arguments Value Examples

View source: R/latex_captions.R

Description

Add a caption to a stargazer::stargazer() output.

Usage

1
latex_add_caption(string, caption, to_bottom = TRUE)

Arguments

string

An atomic character produced by stargazer::stargazer().

caption

An atomic character to be added as the caption.

to_bottom

Boolean, should the caption moved to the bottom?

Value

string with an added caption

Examples

1
2
3
df <- data.frame(a = rnorm(5), b = rnorm(5))
sg <- stargazer::stargazer(df)
latex_add_caption(sg, "This is going to be the caption")

thorepet/thoremisc documentation built on Oct. 8, 2021, 7:48 a.m.