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 18:30:53 +0100
See now
http://www.statalist.org/forums/forum/general-stata-discussion/general/1686-bad-variable-names
Nick
[email protected]
On 16 April 2014 16:45, Nick Cox <[email protected]> wrote:
> See also
>
> http://www.stata.com/statalist/archive/2014-02/msg00387.html
>
> for a similar problem and a way to address it.
> Nick
> [email protected]
>
>
> On 16 April 2014 12:53, Nick Cox <[email protected]> wrote:
>> 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/