latex_math_letters: Toggle LaTeX math mode for leading letters.

Description Usage Arguments Value Examples

View source: R/latex_math_letters.R

Description

Wrap the leading letters in t-test, F-statistic, p-value, etc. in $ to toggle LaTeX math mode. Any combination to leading letter and trailing word will also be modified (i.e. if t-test and F-statistic are given, t-statistic and F-test will also be matched).

Usage

1
latex_math_letters(string, convert = NULL, append = TRUE)

Arguments

string

A character vector.

convert

A character vector of hyphenated words to wrap.

append

Boolean, should the words in convert be appended to the implemented words.

Value

string with leading letters wrapped in $.

Examples

1
latex_math_letters("The t-test and z-score.", "z-score")

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