ez.scale: z score, scale, NA ignored & returned in place.

View source: R/stats.R

ez.scaleR Documentation

z score, scale, NA ignored & returned in place.

Description

z score, scale, NA ignored & returned in place.

Usage

ez.scale(x, col = NULL, center = TRUE, scale = TRUE)

ez.z(x, col = NULL, center = TRUE, scale = TRUE)

Arguments

x

a data frame or a vector

col

passed to ez.selcol
if x is a data frame, col specified, process that col only.
if x is a data frame, col unspecified (i.e., NULL default), process all cols
if x is not a data frame, col is ignored
could be multiple cols

Value

returns a new data frame or vector

Note

similar to base::scale, but no special scale attributes alias: ez.z and ez.scale

See Also

ez.se ez.sd


jerryzhujian9/ezmisc documentation built on March 9, 2024, 12:44 a.m.