Statalist


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

st: reordering observations


From   Cindy Gao <[email protected]>
To   [email protected]
Subject   st: reordering observations
Date   Fri, 1 Aug 2008 13:43:53 +0000 (GMT)

Hello,

I need to reorder one of my variables (from lowest to highest) without changing the order of other variables in my dataset. Is there any simply way to do this?

Like, I have now:
var1    var2       var3 ...
3        7             9
2        10           3
7        8             5
..........

And I like to reorder var3 to get:
var1    var2       var3 ...
3        7             3
2        10           5
7        8             9
..........

Please, this is not the -reorder- command which is already there in Stata, it is something different.

Many thanks!
Cindy



      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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