lmeLabel: Returns a standard label for LaTeX tables

Description Usage Arguments Value Note Author(s) See Also Examples

Description

The standard label for LaTeX table references consist of a first part (e.g. tab:, followed by the parameter type (e.g. contr for contrasts, by for breakdown lists. A list of parameters is appended, with special characters, including spaces and I(), are removed, and the whole string is lowercased.

Usage

1
lmeLabel(type, form, spelldigits = FALSE)

Arguments

type

type of table, e.g. contr for contrasts.

form

a formula or a multipart string.

spelldigits

if TRUE, digits are converted to "one", "two", etc.

Value

For example, lmeLabel("contr","Press~Treat*Repeat") returns tab:contr.press.treat.repeat. Note lowercase in result.

Note

Used internally in Dmisc, but recommended for use by other labelled tables to force consistency.

Author(s)

Dieter Menne, dieter.menne@menne-biomed.de

See Also

latex.lme, anova.lme

Examples

1
2
3
lmeLabel("contr","Press~Treat*Repeat+I(Repeat^2)")
# This shows how digits are converted
lmeLabel("contr","yield ~ I(nitro^2) * Variety + I(nitro^3)",TRUE)

dmenne/dlatex documentation built on May 15, 2019, 9:32 a.m.