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 <[email protected]>
To   [email protected]
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"


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

Dan Blanchette
Carolina Population Center UNC-CH
[email protected]

>st: How to use wildcards
>From 	  Rodrigo Brice�o <[email protected]>
>To 	  "Statalist" <[email protected]>
>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?
>Rodrigo Brice�o
>Sanigest Internacional
>Telf. Oficina:     (506) 280-5457
>Fax:                     (506) 234-1486
>Celular:              (506) 357-4535

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index