Statalist


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

st: data entries


From   Tunga Kantarci <[email protected]>
To   [email protected]
Subject   st: data entries
Date   Tue, 19 May 2009 23:36:59 +0200

Hello,

I have a string variable whose entries look like as below: 

2011017:1
2011018:1
2011018:2
2011026:1
2011040:1
2011041:1

I need to determine how many of these entries have "2" at the end (i.e. as
you see above some entries have  ":1" and some others have ":2". I would
like to determine the number of entries with ":2" at the end.

What would be the command for this?


*
*   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