View source: R/limpiar_texto.R
limpiar_texto | R Documentation |
Aplica tolower(), str_replace_all() para quitar caracteres especiales y remover_tildes(). También aplica opcionalmente str_replace_all() convertir "ñ" en "n" (por default se aplica). Ej.:
limpiar_texto(texto, enie = TRUE)
texto |
variable de clase 'character' a la que se le quiere aplicar la función |
enie |
valor lógico (TRUE o FALSE) indicando si reemplazar "ñ" por "n" |
limpiar_texto("TéxTÔ con una Ñ?!") #"texto con una n"
limpiar_texto("TéxTÔ con una Ñ?!", enie = FALSE) #"texto con una ñ"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.