Statalist


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

Re: st: reordering observations


From   David Airey <david.airey@Vanderbilt.Edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: reordering observations
Date   Fri, 1 Aug 2008 10:26:02 -0500

.

If merge is not your thing, export to Microsoft Excel or any spreadsheet. Sort just that column. Import to Stata.

:)


On Aug 1, 2008, at 8:43 AM, Cindy Gao wrote:


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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index