as_glossary: Create a new glossary object

View source: R/glossary.R

as_glossaryR Documentation

Create a new glossary object

Description

Rather than reading from a file, glossary objects can be created inline.

Usage

as_glossary(...)

Arguments

...

unquoted ⁠<label> = <definition>⁠ pairs, or a named list of abbreviations where the names are the labels; see Examples.

Details

For all entries in the new object, the abbreviation is set to the label. See update_abbrev() to customize the abbreviation.

Entries that have duplicate labels will be dropped with a warning.

Value

A new glossary object.

See Also

read_glossary(), update_abbrev()

update_abbrev()

Examples


as_glossary(wt = "weight", ht = "height", bmi = "body mass index")

as_glossary(wt = "weight", ht = "height", wt = "baseline weight")

l <- list(VPC = "visual predictive check", tz = "timezone")

as_glossary(l)

as_glossary(l, wt = "weight")


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