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

RE: st: sort


From   "philippe van kerm" <philippe.vankerm@ceps.lu>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: sort
Date   Wed, 29 Jun 2005 09:39:17 +0200

This query has been answered yesterday, but for the record, let me add
that this is what _gclsort does.  _gclsort is available from the SSC
archive (ssc install _gclsort).
  
sysuse auto
egen price2 = clsort(price)

Philippe


> -----Original Message-----
> 
> Date: Tue, 28 Jun 2005 14:05:41 -0700
> From: "NEYMOTIN, FLORENCE" <neymotin@calmail.berkeley.edu>
> Subject: st: sort
> 
> is there a way to sort just ONE variable without changing the 
> rest of the dataset? i.e. I want to 
> sort EACH variable seperately and leave the rest of the 
> dataset the same...
> thanks,
> Florence
> *
> *   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/

<<<>>><<<>>><<<>>><<<>>><<<>>><<<>>><<<>>><<<>>>
Dr. Philippe Van Kerm
IRISS - Integrated Research Infrastructure in 
  the Socio-Economic Sciences
CEPS/INSTEAD
BP48, L-4501 Differdange, Luxembourg
>> http://www.ceps.lu/iriss <<
>> http://econpapers.repec.org/RAS/pva19.htm <<
<<<>>><<<>>><<<>>><<<>>><<<>>><<<>>><<<>>><<<>>> 

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept 
**********************************************************************



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