Learn R Programming

WebAnalytics (version 0.9.13)

laTeXEscapeString: Escapes a string to enable it to be embedded in a LaTeX document

Description

The string parameter is an R string that will have a regex applied to it so backslashes will need to be escaped before calling this.

Usage

laTeXEscapeString(nameString)

Value

Returns the escaped string

Arguments

nameString

The string to have escapes applied.

Author

Greg Hunt <greg@firmansyah.com>

Examples

Run this code
laTeXEscapeString("a$b")

Run the code above in your browser using DataLab