Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: inconsistent behavior of -ds-


From   Caleb Southworth <caleb@uoregon.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: inconsistent behavior of -ds-
Date   Wed, 6 Sep 2006 20:42:34 -0700 (PDT)

Thanks Scott and Kit. I was confusing storage type with the position of
the string var in r(varlist). I can get the desired output by exploiting
the fact that the one string I wish to exclude is much longer (%80s) than
any other string variable. Another option would be parse the first two
variables from r(varlist). These two variables plus the space in between
are 9 characters, so

ds
local list = substr("`r(varlist)'",9,.)
li `list'

Caleb
caleb@uoregon.edu
University of Oregon Sociology
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index