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: Changing part of variable names
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Changing part of variable names
Date
Tue, 24 May 2011 15:58:54 +0100
Not so. The only occurrence of -substr()- in the help is in the example
renvars, map("D_" + substr("@", 1, 6))
and here "substr" within an example refers to a call to Stata's
-substr()- function.
It seems odd to me now that we called the option -subst()-, not
-substr()-, but we did, and so I believe that the help file is
consistent with the syntax.
Nick
On Tue, May 24, 2011 at 3:20 PM, Frank Somogyi <[email protected]> wrote:
> oh, great, thanks, now it worked.
>
> @Nick: the help file contains an error, it says -substr- there .
>
*
* 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/