The help of -describe- states that the number of variables in varlist will be stored in r(k). However, when I try
the last display command should show 12 (as I would expect from the help of -describe-) -- not 24. Previously (as of 2011) the -describe- command still seemed to work as I would expect, see Nick's answer in the old Statalist: https://www.stata.com/statalist/arch.../msg00744.html .
What am I doing wrong or what has changed, since?
Code:
sysuse auto, clear qui d di `r(k)' // r(k)=12 -- OK foreach v of varlist _all { clonevar clone_`v' = `v' } qui d di `r(k)' // r(k)=24 -- OK qui d clone_* di `r(k)' // r(k)=24 -- but should be 12
What am I doing wrong or what has changed, since?
Comment