AUTORECODE
Recodes the distinct values of a variable (often a string) into consecutive integers 1, 2, 3 … with the old values kept as value labels.
Syntax
Section titled “Syntax”AUTORECODE VARIABLES=varlist /INTO newlist [/DESCENDING] [/BLANK=MISSING|VALID] [/GROUP] [/PRINT].Synopsis
Section titled “Synopsis”| Kind | Data management |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /APPLY, /BLANK, /DESCENDING, /GROUP, /INTO, /PRINT, /SAVE, /VARIABLES |
Examples
Section titled “Examples”AUTORECODE VARIABLES=city /INTO city_n.Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.