Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From   Haluk Vahaboglu <vahabo@hotmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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: klein.daniel.81@gmail.com
>> To: statalist@hsphsun2.harvard.edu
>>
>> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index