Bookmark and Share

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]

Re: st: RE: Batch convert characters in variable labels


From   daniel klein <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: RE: Batch convert characters in variable labels
Date   Sat, 1 Jun 2013 14:59:28 +0200

Haluk is asking to change variable labels first, then rename variables
accordingly.

Unfortunatly, I do not rigth know have the time to try this, but

-filefilter- might be helpful here, to change those characters before
getting them into Stata

-labvarch- (part of -labutil- package, Cox, SSC) might be useful to
convert the characters in variable labels

- lab2varn- (part of -labutil2- package [though not documented yet],
SSC) renames variables to match variable labels

Best
Daniel

--
Hello,
I am using STATA 12 during my clinical research activities. In my
country (Turkiye) we work with databases encoded according to
Codetable ISO/IEC 8859-9.
When I import data from an excel workbook, naturally variable names
omit special characters (Ğ, İ, Ş, ğ, ı, ş) which are considerably
common in Turkish. Since lots of characters ommitted in variable names
these become puzzling to work.
However, I see these characters in variable labels.
If I may be able to change characters in variable labels and assign
these converted labels as variable names it would work for me.
Could anyone help me to batch convert special characters in variable
labels and assign these converted labels as variable names?
Thank
you in advance

*
*   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/


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