R/Nice Scale Function.R

Defines functions scale_this

# non-problematic scale function ####

scale_this <- function(x){
  (x - mean(x, na.rm=TRUE)) / sd(x, na.rm=TRUE)
}
gfalbery/ggregplot documentation built on Feb. 4, 2025, 3:17 a.m.