sanitize_text: Sanitize text

View source: R/sanitize_text.R

sanitize_textR Documentation

Sanitize text

Description

[Stable]

Sanitize text for compatability with latex. Used for example when escape = FALSE needed in kableExtra table (with output latex), for example when needing footnotes.

Usage

sanitize_text(str)

Arguments

str

Character vector to be sanitized.

Value

The sanitized character vector.

Examples

var_names <- c(">50", "#Test", "Test1 & Test2")
var_names <- sanitize_text(var_names)

linabe/hfmisc documentation built on Oct. 10, 2022, 3:17 p.m.