Skip to contents

Takes a string of text and sanitises only the use of "%" for use with latex

Usage

sanitise_percent(str)

Arguments

str

String of text

Examples

    str <- "\\multirow{2}{4cm}{75%}"
    sanitise_percent(str)
#> [1] "\\multirow{2}{4cm}{75\\%}"