scale: Scale a matrix with no attributes

View source: R/scale.R

scaleR Documentation

Scale a matrix with no attributes

Description

From http://r.789695.n4.nabble.com/How-to-remove-attributes-from-scale-in-a-matrix-td4671715.html

Usage

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

Arguments

x

the data

center

whether you subtract the mean

scale

whether you divide by the SD

Details

scale is exactly the same as normal scale, except without the attributes that make scale so terrible to work with in functional environments.

See Also

scale

Examples

scale(c(1,2,3,4,5))


langcog/langcog-package documentation built on March 28, 2024, 9:52 a.m.