A variation over the base R scale function that avoids the "divide by 0 = NA" problem.
R
Useful links