The Transform variables dialog provides a variety of scaling and binning options.

To convert data in a particular column to another format (e.g., convert meters to inches), choose **Transform** from the **Data** menu on the menu bar of the Console window. The following window will appear.

Add the desired variable to the **Variables to Transform** space. Choose the appropriate transformation from the pull down menu or choose **Enter Function** under the **Custom** option. (Scroll down to the bottom of the pull down menu list.) Click Run. The transformed variable will appear as the last column in the Data Viewer. (Scroll to see the last column.)

Each variable in the "Transform to Variable" list has a transformation applied to it, and the resulting transformed variable is saved to a new target variable. The target variable name can be altered by clicking the Target button.

A variety of transformation options are provided. These can be used to make variables more normal looking, to scale them to a particular range, to stabilize their variance, or to bin them into categorical groups.

- Description
- This transformation scales the variable so that it has a mean of 0.
- Purpose
- To scale variables so that they have identical mean.

- Description
- This transformation scales the variable so that it has a mean of 0, and a standard deviation of 1.
- Purpose
- To scale variables so that they are comparable regardless of unit of measurement.

- Description
- This transformation scales the variable so that it has a median of 0, and a median absolute deviation of 1.
- Purpose
- To scale variables so that they are comparable, even if outliers are present.

- Description
- This transformation scales the variable so that it is between 0 and 1.
- Purpose
- Puts all variables in the same range.

- Description
- A multivariate transformation that attempts to map the variables to multivariate normality
- Purpose
- Transform to the normal distribution. A useful prepossessing step for analysis methods that assume normality.

- Description
- Replaces values by their rank. Ties can be broken in a variety of ways (Average, First, Random, Minimum, Maximum).
- Purpose
- To remove outliers and skewness

- Description
- Takes the natural log (i.e. the log base e) of the variable. Can only be used on values greater than 0.
- Purpose
- Can remove positive skew, and stabilize variance.

- Description
- Takes the natural log (i.e. the log base e) of the variable with 1 added to it. Can only be used on values greater than -1.
- Purpose
- Can remove positive skew, and stabilize variance. Can be used on variables with values of 0.

- Description
- Square root. values must be non-negative
- Purpose
- Stabilizes variance for count data.

- Description
- makes values positive
- Purpose
- When the magnatude of the variable is of interest, and not its direction.

- Description
- Takes the square

- Description
- The inverse (i.e. 1/x). values must be non-zero.

- Description
- -1/sqrt(x)

- Description
- Takes the arcsine of the square root of the variable..
- Purpose
- Stabilizes variance for proportions.

Splits variable into groups with equal numbers of observations.

Splits variable into groups with equally spaced intervals.

Define your own transformation as a function of x. for example: `log(x,10)`

gives the log based 10 transformation.

variables <- c("disp","hp","drat") into.variables <- c("disp.tr","hp.tr","drat.tr") for(i in 1:length(variables)) mtcars[[into.variables[i]]] <- rescaler(mtcars[[variables[i]]]) rm(list=c('variables','into.variables'))