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: renaming an invalid varname


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
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
[email protected]


On 16 April 2014 12:45, SEZER ALCAN <[email protected]> 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/


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