R/str_remove_accent.R

Defines functions str_remove_accent

Documented in str_remove_accent

#' Remove accent in general
#'
#' Wrap around stringi
#' @param str String or vector of string you want to remove accent
#'
#' @return String vector
#'
#' @examples
#' library(stringr)
#' str_remove_accent('tôi muốn ăn cơm')
#'
#' @export

str_remove_accent <- function(str) {
  stringi::stri_trans_general(str, id = "Latin - ASCII")
}
vohai611/haitools documentation built on Dec. 23, 2021, 4:10 p.m.