Last data update: 2014.03.03

R: Scale
scale2R Documentation

Scale

Description

Returns scores in x after rescaling

Usage

scale2(x, center = TRUE, scale = TRUE)

Arguments

x

A numeric vector, matrix or data.frame

center

A logical indicating whether the scores in the columns in x should have their column means subtracted

scale

A logical indicating where the scores in the columns in x should be divided by their column standard deviations

Details

The built-in R function scale uses the sample standard deviation when its scale option is set to TRUE. This function uses the population standard deviation instead.

Value

Returns a variable with dimensions equal to that has been scaled according to the arguments used

Author(s)

Ryne A. Sherman

See Also

scale

Examples

scale(1:5)
scale2(1:5)
	

Results