Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Changing characters and letters in all value labels
From
maria t <[email protected]>
To
"." <[email protected]>
Subject
st: Changing characters and letters in all value labels
Date
Thu, 24 Oct 2013 10:48:20 +0200
Hi statalist members,
I would like to remove certain letters and characters in all my value labels and replace them with other ones.
I have used the following program to change the letter "z" to "a" in all the variable labels, but I can't find out how to do the same for the value labels.
Foreach i of varlist_all {
local a: variable label `i'
local a: subinstr local a "z" "a"
label var `i' "a"
}
I would be very grateful if any of you could help me solve this.
Thanks,
Maj
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/