Stata 15 help for rename

[D] rename -- Rename variable

Syntax

rename old_varname new_varname

Menu

Data > Data utilities > Rename groups of variables

Description

rename changes the name of an existing variable old_varname to new_varname; the contents of the variable are unchanged. Also see [D] rename group for renaming groups of variables.

Examples

Setup . webuse renamexmpl . describe

Change name of exp to experience and change name of inc to income . rename exp experience . rename inc income

Describe the data . describe


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index