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 <[email protected]>
To   [email protected]
Subject   st: Re: bug in xpose.ado?
Date   Thu, 07 Nov 2002 12:46:17 -0600

--Patrick Joly <[email protected]> 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 <[email protected]> (with
slight modification), a fix will be available in the next ado update.


Weihua Guan <[email protected]>
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index