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

st: another data cleaning question

From   Babigumira Ronnie <>
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?


Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
*   For searches and help try:

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