texreg (version 1.37.1)

names2latex: 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.

Value

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

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.

See Also

texreg