fn builtin_scale(
args: &[RValue],
named: &[(String, RValue)],
) -> Result<RValue, RError>Expand description
Center and/or scale a numeric vector.
When center = TRUE, subtracts the mean. When scale = TRUE, divides by the standard deviation. Returns a double vector with “scaled:center” and “scaled:scale” attributes.
@param x numeric vector @param center logical (default TRUE) @param scale logical (default TRUE) @return numeric vector