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, statalist.org is already up and running.


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

Re: st: Changing part of variable names


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <live@gmx.net> 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/


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