Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: "sort" over different variables


From   <[email protected]>
To   <[email protected]>
Subject   st: RE: "sort" over different variables
Date   Mon, 24 Aug 2009 15:12:55 -0400

Are you sorting by something logical?  
As in descending order of numeric value, or something like that?

Otherwise it might be difficult to do.
Could you be a bit more specific?

Andy

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: August 24, 2009 3:00 PM
To: [email protected]
Subject: st: "sort" over different variables


Dear All,
I have a quick (and probably simple) question: I would like to "sort" my
dataset over several variables. At the moment my dataset looks like this
(very simplified example):

Var1   Var2   Var3    Var4 
1000   3000   2000    500

And should look like this:

Var1    Var2    Var3    Var4
500      1000    2000    3000    

Thank you for any advice and help.
Simon

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