escape_non_ascii {fritools} | R Documentation |
Escape non-ASCII Characters
Description
I often get code with german umlauts that need to be escaped.
Usage
escape_non_ascii(x)
Arguments
x |
A character vector. |
Value
A character vector.
See Also
Other vector functions:
char2factor()
,
file_string()
Examples
x <- c("foo", "djörman", "bar", "djörman bar")
escape_non_ascii(x)
# change file
f <- tempfile()
writeLines(x, f)
writeLines(escape_non_ascii(readLines(f)), f)
[Package fritools version 4.5.0 Index]