Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Deleting similar observations


From   George Chioran <[email protected]>
To   [email protected]
Subject   st: Deleting similar observations
Date   Tue, 15 Jun 2010 15:53:18 -0700 (PDT)

Dear statlisters, 
I have a database that
looks like this: 
Account               Buy sell
2                              b
2                              b
2                              s
2                              b
5                              s
5                              s
5                              s
5                              s
7                              s
7                              s
Taken per account, I would like to know if
there is a way to delete all the observations that have the same letter in
the Buy sell variable. In my case this would delete all observations from
account 5 since they are all only sell. 
 
Thank you, 
George 


      
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index