Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: Changing part of variable names

From   Nick Cox <>
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.


On Tue, May 24, 2011 at 3:20 PM, Frank Somogyi <> wrote:
> oh, great, thanks, now it worked.
> @Nick: the help file contains an error, it says -substr- there .
*   For searches and help try:

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