Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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

Conversion of R Regression Output to LaTeX or HTML Tables

v1.37.5
GPL-3
Authors
Philip Leifeld [aut, cre], Claudia Zucca [ctb]
Initial release
2020-06-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.