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

st: another data cleaning question


From   Babigumira Ronnie <[email protected]>
To   [email protected]
Subject   st: another data cleaning question
Date   Sun, 23 Jun 2002 08:46:05 -0700 (PDT)

Dear listers
I have data that looks like this

cropcode varcode
116      11603
115      11599
223      22309

The first variable is the code for different crops while varcode is the
specific variety. As you can see from the example, the variety code comes
from crop code (the first three digits are the crop codes).

I am cleaning the data and I would like to flash out cases where the
varcode is not consistent with the cropcode such as

cropcode varcode
116      11503
           ^  
How can I do this in stata?

Roni



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index