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: Re: how to DE-CAPITALISE variables?


From   Rajaram Subramanian Potty <[email protected]>
To   [email protected]
Subject   Re: st: Re: how to DE-CAPITALISE variables?
Date   Wed, 30 Jun 2010 16:19:31 +0530

Hi,

This is the command for changing the vairables from capital to lower case.

renvars  nameofvariables, lower

Thnaks

On Wed, Jun 30, 2010 at 3:00 PM, nshephard <[email protected]> wrote:
>
> Josef Montag wrote:
>>
>> Hi all,
>>
>> a sily/simple question: I have a dataset in which all variable names are
>> in CAPITAL letters. Is there a simple way how to de-capitalise them?
>>
>
>
> Out of curiosity where is your dataset coming from?
>
> If you're -insheet-ing it from ASCII text files then the default behaviour
> is to lowercase all variable names unless the -, case- option is used which
> will preserve the case of variable names.
>
> This in turn suggests another solution (although it has the drawback that
> you will loose all variable labelling and value encoding/labelling).
>
> outsheet using tmp.txt
> insheet using tmp.txt
>
> Neil
> --
> View this message in context: http://statalist.1588530.n2.nabble.com/how-to-DE-CAPITALISE-variables-tp5231402p5237445.html
> Sent from the Statalist mailing list archive at Nabble.com.
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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