rstudio-education/taller-tidyverse

estandadarizar

Closed this issue · 0 comments

estandarizar <- function(x) (x - mean(x))/(sd(x))

diamantes %>%
mutate_at(vars(x, y, z), estandarizar)

Me encanta esta función (tan sencilla), pero lo que hace es que ahora x,y,z han sido modificado.

como uno hace para darle nuevo nombre a las variables modificadas