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

st: how to split numeric variable

From   Wade T Roberts <>
Subject   st: how to split numeric variable
Date   Wed, 24 Sep 2003 15:14:15 -0700 (MST)

Hi, I was hoping someone might be able to shed some light on this issue.

I have a single numeric variable that identifies the city/county/state for
each case, where the first three digits represent the city, the next two
the county, and the final two represent the state.



I'm only interested in identifying cases by state at the moment.  How do I
go about singling out this part of the data, or creating a new identifying
state variable?

Thanks for any help.

*   For searches and help try:

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