MODIFY VARS
Reorders, renames, keeps or drops variables in one command.
Syntax
Section titled “Syntax”MODIFY VARS [/REORDER=[FORWARD|BACKWARD] [POSITIONAL|ALPHA] (varlist) …] [/RENAME=(old=new) …] [/KEEP=varlist] [/DROP=varlist] [/MAP].Synopsis
Section titled “Synopsis”| Kind | Data management |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /DROP, /KEEP, /MAP, /RENAME, /REORDER |
Specifications
Section titled “Specifications”- REORDER: listed variables move to the front, in the order given (ALPHA sorts them; BACKWARD reverses)
- RENAME: (old=new) pairs; swaps such as (a=b)(b=a) work
- KEEP: keep only these variables
- DROP: remove these variables
- MAP: show a table of old and new names
Examples
Section titled “Examples”MODIFY VARS /RENAME=(q1=satisfaction) /DROP=temp1 temp2 /MAP.MODIFY VARS /REORDER=ALPHA (income age region).Related
Section titled “Related”RENAME VARIABLES, DELETE VARIABLES, MOVE VARIABLES
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.