#' convert names to lower character and ascii
#'
#' This is a function that converts a character vector to all lower case and ascii, see example.
#'
#' @param x [\code{character(n)}]\cr
#' character vector to be converted
#'
#' @examples
#' text = c("GrĂ¼ne", "SPD")
#' convert_names(text)
#'
#' @return data.frame in long format
#'
#' @export
convert_names = function(x) {
assert_character(x)
iconv(x, from= "UTF-8", to = "ASCII//TRANSLIT") %>% (tolower)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.