Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: renaming an invalid varname |
Date | Wed, 16 Apr 2014 12:53:50 +0100 |
The key here is that Stata is not actually using the name ^ss02101 as a variable name: how could it, given that such a name is invalid? It's using some other version of the name. There are various solutions but the one I would try first is not anything that requires you to type the variable name. Try changing the name in -varm- or the Data Editor. Nick njcoxstata@gmail.com On 16 April 2014 12:45, SEZER ALCAN <sezer.alcan@hazine.gov.tr> wrote: > Stata does not allow me to rename an invalid varname. How do a change the varnames? I use stata12. > The data set I have been using, have some variables with invalid names such as (Áal˝˛012) or (ˆss02101). When I try to rename these variables I get the following message. > > rename ˆss02101 oss02101 > ˆss02101 invalid name > r(198); > > Any suggestion to rename already invalid varnames? > Thanks > Sezer Alcan > > * > * 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/