transformx {fields}R Documentation

Linear transformation


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


transformx (x, scale.type = "",, x.scale)


x Matrix with columns to be transformed.
scale.type Type of transformation the default is "": subtract the mean and divide by the standard deviation. Other choices are "unscaled" (do nothing), "range" (transform to [0,1]),"user" (subtract a supplied location and divide by a scale). A vector of centering values to subtract from each column.
x.scale A vector of scaling values to subtract from each column.


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,, krig.image etc. to transform the independent variables.


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

See Also



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

[Package fields version 3.3.1 Index]