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

st: Macro problem.


From   [email protected]
To   [email protected]
Subject   st: Macro problem.
Date   Tue, 7 Sep 2004 14:02:40 -0400

Hi,
I have the following macro problem.
In my macro, some variable are repeated
twice or more, and when trying to reshape, I can't.
It looks like:

global myvars " v1 v2 v3 v4 v5 v1 v6 v4 ......v7 v3"

So, I have to make sure that I have the variable only
one time. But sometime, I have hundreds of variables
when reshaping large datasets. And I can't figure
visually which are reapeated.
How to eliminate the doubles?
Best regards.
Amadou DIALLO.
Ph.D. candidate.

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