Learn R Programming

fields (version 5.02)

transformx: Linear transformation

Description

Linear transformation of each column of a matrix. There are several choices of the type of centering and scaling.

Usage

transformx (x, scale.type = "unit.sd", x.center, x.scale)

Arguments

Value

A matrix whose columns have between transformed. This matrix also has the attributes: scale.type, x.center and y.center with the transformation information.

Details

After deciding what the centering and scaling values should be for each column of x, this function just calls the standard utility scale. This function was created partly to attach the transformation information as attributes to the transformed matrix. It is used in Krig, cover.design, krig.image etc. to transform the independent variables.

See Also

scale

Examples

Run this code
#
newx<-transformx( ozone$x, scale.type="range")

Run the code above in your browser using DataLab