Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: bug in xpose.ado?


From   Weihua Guan <wguan@stata.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: bug in xpose.ado?
Date   Thu, 07 Nov 2002 12:46:17 -0600

--Patrick Joly <pat.joly@utoronto.ca> wrote:

> -xpose- seems to object when the _varname variable contains the 
> string values v1, v2, ..., vN.  For instance,
> [...]
> . list
>      _varname      myvar
> 1.         v1          1
> 2.         v2          2
> 3.         v3          3
> [...]
> . xpose, clear
> v1 already defined
> r(110);
> [...]

As Patrick noticed, the error is because -xpose- generates variables as v1-vn
by default, which results in the name conflict when user provides names with
"v" prefix.  Based on the suggestion by Nick Cox <n.j.cox@durham.ac.uk> (with
slight modification), a fix will be available in the next ado update.


Weihua Guan <wguan@stata.com>
Stata Corp.

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