names2latex: Replace symbols in a character string or vector by LaTeX...

View source: R/texreg.R

names2latexR Documentation

Replace symbols in a character string or vector by LaTeX equivalents

Description

Replace symbols in a character string or vector by LaTeX equivalents-

Usage

names2latex(x)

Arguments

x

A character object of arbitrary length.

Details

This function is an internal helper function that takes a character object or vector and replaces symbols like underscores, angle brackets, or superscripted numbers by properly escaped LaTeX equivalents in order not to break any LaTeX table code when the link{texreg} function is used.

Value

Same as the input object but with escaped or replaced symbols.

Author(s)

Philip Leifeld

See Also

texreg


texreg documentation built on Sept. 11, 2024, 6:41 p.m.