In general, there's no guarantee that a
variable label contains a legal variable
name, but something like this should
help, plugging in your own substitute
for <varlist>
foreach v of var <varlist> {
capture rename `v' `: var label `v''
}
Nick
[email protected]
Van Campenhout Bjorn
> i would like to know if there is a quick way to rename variables to
> their own variable labels.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/