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

Re: st: How to use wildcards


From   Dan Blanchette <dan_blanchette@unc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How to use wildcards
Date   Tue, 24 Feb 2004 15:35:12 -0500 (EST)

No wildcards required since string variables can be used in ranges:

tab codes if codes>="O140" and codes<="O150"

or

tab codes if inrange(codes,"O140","O150")

Dan Blanchette
Carolina Population Center UNC-CH
Dan_Blanchette@unc.edu


>st: How to use wildcards
>From 	  Rodrigo Briceņo <rbriceno@sanigest.com>
>To 	  "Statalist" <statalist@hsphsun2.harvard.edu>
>Subject 	  st: How to use wildcards
>Date 	  Tue, 24 Feb 2004 13:06:57 -0600
>
>Hello friends of the stata list. I have a database with 4 digits codes, for
>example: O140 where the first character is a letter. Those codes are strings
>and I want to know how to tabulate frequencies of some codes using
>wildcards. For example I want to get the total number of codes who are
>between 0140 and 0150, what can I do?
>Thanks
>
>
>________________________
>
>Rodrigo Briceņo
>Consultor
>Sanigest Internacional
>Telf. Oficina:     (506) 280-5457
>Fax:                     (506) 234-1486
>Celular:              (506) 357-4535
>www.sanigest.com
>_______________________



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