st_notes_glo: Add table notes based on acronyms from a tex glossary file

View source: R/table-object.R

st_notes_gloR Documentation

Add table notes based on acronyms from a tex glossary file

Description

Add table notes based on acronyms from a tex glossary file

Usage

st_notes_glo(
  x,
  glossary,
  ...,
  sep = ": ",
  collapse = "; ",
  labels = NULL,
  width = NULL
)

Arguments

x

an stobject.

glossary

a glossary object generated from read_glossary() or as_glossary().

...

unquoted names matching those names in glossary.

sep

character to separate name and value.

collapse

a character used to collapse definitions into a single string.

labels

a character vector or comma-separates string of definition labels to get appended to the end of names passed in ....

width

if numeric, st_notes_detach() will be called with width argument.

See Also

glossary_notes(), read_glossary()

Examples

library(dplyr)

file <- system.file("glo", "glossary.tex", package = "pmtables")

x <- read_glossary(file)

st_new(stdata()) %>%
  st_notes_glo(x, WT, CRCL, SCR, width = 1) %>%
  stable()


metrumresearchgroup/pmtables documentation built on Dec. 22, 2024, 1:34 a.m.