escape: Protect control characters in a string for use in a latex...

View source: R/escape_latex.R

escapeR Documentation

Protect control characters in a string for use in a latex table or caption

Description

escape takes a vector of chracter values, and puts "\" in front of them to make them allowable in the latex table output

Usage

escape(x)

Arguments

x

character vector of test containing values that need to be latex escaped

Value

character Vector of transformed values for table output

Examples

value_example <- c("testvalue", "test_value", "ampersand&")
escape(value_example)
escape("String_Entry %")


FredHutch/VISCfunctions documentation built on Oct. 14, 2024, 11:33 p.m.