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]

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


From   Haluk Vahaboglu <[email protected]>
To   "[email protected]" <[email protected]>
Subject   FW: st: RE: Batch convert characters in variable labels
Date   Mon, 3 Jun 2013 09:19:31 +0000

Daniel, Nick & Mustafa,
Thank you for your contributions. Encoding according to languages other than common western (English in brief) is an ongoing issue in STATA and I see unfortunately it will remain so for a while.
Neither of your suggestions solved my problem.
Instead, I modified a calc macro (openoffice calc) and change all Turkish characters to Eng before importing the database to STATA.
Thanks all again
 
 
Prof. Dr. Haluk Vahaboğlu
Istanbul Medeniyet Üniversitesi,
Göztepe Eğitim ve Araştırma Hastanesi
Enfeksiyon Hastalıkları
ve Klinik Mikrobiyoloji ABD
Dr. Erkin Caddesi 34730
Kadıköy / Istanbul TURKIYE
 
 
> 
> ----------------------------------------
>> Date: Sat, 1 Jun 2013 14:59:28 +0200
>> Subject: Re: st: RE: Batch convert characters in variable labels
>> From: [email protected]
>> To: [email protected]
>>
>> 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/ 		 	   		  

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