Statalist


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

st: RE: sorting with a key


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: sorting with a key
Date   Fri, 12 Sep 2008 11:24:06 +0200

Just as an aside, -h sortrows- at the bottom says: "This is a similar
command to Nicholas Cox's sortrows". I think that should be -rowsort-...

Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ashim Kapoor
Sent: Friday, September 12, 2008 11:01 AM
To: [email protected]
Subject: st: sorting with a key

Hi again guys!

I wish to say 2 things. The ado file which I posted earlier is much
faster than looping manually in stata.

Also the original sortrows has some checks and balances which I
removed to clarify the main programming goal in my mind plus I only
started doing MATA yesterday.

I want to make one improvement. Sortrows allows me to say

sortrows(var*)

I want to say keysortrows(var*), key(k*)

How can I make this improvement ? Please give me a hint.

Thank you,
Ashim.
*
*   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