#' 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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.