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 on April 23, and its replacement, is already up and running.

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

Re: st: label to lower case

From   Marcos Delprato <>
Subject   Re: st: label to lower case
Date   Tue, 6 Nov 2012 15:21:05 +0100

Thanks Richard. The proper command works fine. The problem is that I
have numerous labels in the variable and I would need a loop to access
each label and made the ABCD to Abcd in each of them by applying the
proper command. Any ideas? Thanks in advance


On Tue, Nov 6, 2012 at 2:55 PM, Richard Goldstein
<> wrote:
> you cannot label string variables so I assume you are talking about the
> values; use the "proper" function; a direct way to this is -h proper-,
> but you could have found it by looking under string functions after
> typing -h function-
> Rich
> On 11/6/12 8:51 AM, Marcos Delprato wrote:
>> Hi,
>> I want to change several capital letter labels of a string variable to
>> lower case except from the first letter. That is, from ABCDE to Abcde.
>> Is it any command or shortcut to do this?
>> Thanks!
>> Marcos
> *
> *   For searches and help try:
> *
> *
> *
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index