# Recode

0th

Percentile

##### Rcmdr Recode Dialog

The recode dialog is normally used to recode numeric variables and factors into factors, for example by combining values of numeric variables or levels of factors. It may also be used to produce new numeric variables. The Rcmdr recode dialog is based on the recode function in the car package.

Keywords
manip
##### Details

The name of the new variable must be a valid R object name (consisting only of upper and lower-case letters, numerals, and periods, and not starting with a numeral). Enter recode directives in the box at the right. Directives are normally entered one per line, but may also be separated by semicolons. Each directive is of the form input = output (see the examples below). If an input value satisfies more than one specification, then the first (from top to bottom, and left to right) applies. If no specification is satisfied, then the input value is carried over to the result. NA is allowed on input and output. Factor levels are enclosed in double-quotes on both input and output. Several recode specifications are supported: [object Object],[object Object],[object Object],[object Object] If all of the output values are numeric, and the "Make new variable a factor" check box is unchecked, then a numeric result is returned.

recode