Skip to content

MODIFY VARS

Reorders, renames, keeps or drops variables in one command.

MODIFY VARS [/REORDER=[FORWARD|BACKWARD] [POSITIONAL|ALPHA] (varlist) …] [/RENAME=(old=new) …]
[/KEEP=varlist] [/DROP=varlist] [/MAP].
Kind Data management
Body main /SUBCOMMAND[=] …
Changes data yes, undoable
Subcommands /DROP, /KEEP, /MAP, /RENAME, /REORDER
  • 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
MODIFY VARS /RENAME=(q1=satisfaction) /DROP=temp1 temp2 /MAP.
MODIFY VARS /REORDER=ALPHA (income age region).

RENAME VARIABLES, DELETE VARIABLES, MOVE VARIABLES


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.