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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: destring_loop


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: destring_loop
Date   Sat, 18 Aug 2012 17:34:26 +0100

You could type in Stata

. help ds

to see that the saving of r(varlist) is documented. You could type

. help saved results

to learn more. To do this on-line,

http://www.stata.com/help.cgi?search

http://www.stata.com/help.cgi?saved_results

Nick

On Sat, Aug 18, 2012 at 11:34 AM, Mahbubeh Parsaeian
<mahbobehparsaeian@yahoo.com> wrote:
> I really appreciate it.
> As I understood the first command list variables not specified in the command  (var2-var10) and using the second command  Stata just destring the specified varlist. I am not familiar with how `r(varlist)' work or mean? Is it possible to help me to understand  it? or with which keyword I can use Stata help to understand it.
>
> Bunches of thanks,
> Mahboubeh
>
>
>
> One option is to use -ds- with the "not" option:
>
> ds var1, not
> destring `r(varlist)', replace

*
*   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