Convert from Unicode to ASCII
unicode_to_ascii.Rd
Convert from Unicode to ASCII
Usage
unicode_to_ascii(x, ...)
# S3 method for default
unicode_to_ascii(x, verbose = FALSE, ...)
# S3 method for character
unicode_to_ascii(
x,
verbose = FALSE,
pattern = c("μ", "µ"),
replacement = c("u", "u"),
general_conversion = TRUE,
...
)
# S3 method for factor
unicode_to_ascii(x, ...)
# S3 method for logical
unicode_to_ascii(x, verbose = FALSE, ...)
# S3 method for data.frame
unicode_to_ascii(x, verbose = FALSE, ...)
# S3 method for list
unicode_to_ascii(x, verbose = FALSE, ...)
Arguments
- x
Object that may contain character strings for conversion.
- verbose
Provide messages about number of values changed.
- pattern, replacement, ...
Passed to
stringi::stri_replace_all_fixed()
- general_conversion
After the initial, specific conversions, run
stringi::stri_trans_general(x, id="Any-Latin;Greek-Latin;Latin-ASCII")
on the current strings.