Created
March 26, 2021 13:51
-
-
Save juanchiem/3b2d54f6f2d4e47a842a7e1027745626 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
starwars %>% | |
mutate(across(c("name", "sex"), | |
~stringi::stri_trans_general( | |
#pasar a mayusculas y sacar puntos | |
str_to_upper(gsub(',', '\\.', | |
# sacar espacios antes-desp | |
str_trim( | |
str_replace_all(., fixed(" "), "_") | |
))), "Latin-ASCII"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment