Statalist The Stata Listserver


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

RE: st: RE: problem with describe and r(varlist)


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: problem with describe and r(varlist)
Date   Mon, 27 Nov 2006 09:06:30 -0600

I suspect your linesize is set too small to display the entire length.  The
macro still contains the entire list just the display is truncated.

For example:


. sysuse auto,clear
(1978 Automobile Data)

.  ds
make          mpg           headroom      weight        turn
gear_ratio
price         rep78         trunk         length        displacement
foreign

. set linesize 109

. ret list

macros:
           r(varlist) : "make price mpg rep78 headroom trunk weight length
turn displacement gear_ratio f.."

. local a "`r(varlist)'"

. foreach l of local a  {
  2. disp "`l'"
  3. }
make
price
mpg
rep78
headroom
trunk
weight
length
turn
displacement
gear_ratio
foreign

. set linesize 152

. ret list

macros:
           r(varlist) : "make price mpg rep78 headroom trunk weight length
turn displacement gear_ratio foreign"


Scott

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Adama Konseiga
> Sent: Monday, November 27, 2006 8:37 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: RE: st: RE: problem with describe and r(varlist)
> 
> Dear all,
> I would like to follow on this discussion and point out an old feature
> of the command -ds- that I'm missing with Stata 9.2.
> Running -ds- followed by a -ret list- used to display my list of
> variables in extenso but as shown below, the macro -r(varlist)- is now
> shortened: f.."



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