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: destring_loop


From   Mahbubeh Parsaeian <mahbobehparsaeian@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: destring_loop
Date   Sat, 18 Aug 2012 03:34:57 -0700 (PDT)

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/


*
*   For searches and help try:
*  http://www.stata.com/help.cgi?searchhttp://www.stata.com/support/statalist/faqhttp://www.ats.ucla.edu/stat/stata/


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