I have this dataframe
`> str(AMComp)
'data.frame':   1300697 obs. of  8 variables:
 $ Commodity.Code       : chr  "H0-842481" "H0-842481" "H0-842481" "H0-842481" ...
 $ Commodity.Description: chr  "Agricultural sprays and powder dispersers" "Agricultural sprays and powder dispersers" "Agricultural sprays and powder dispersers" "Agricultural sprays and powder dispersers" ...
 $ Period               : int  1988 1988 1988 1988 1988 1988 1988 1988 1988 1988 ...
 $ Reporter             : chr  "Australia" "Australia" "Australia" "Australia" ...
 $ Partner              : chr  "Areas, nes" "Argentina" "Austria" "Brazil" ...
 $ Value.Import         : num  156 NA 425739 16623 6930 ...
 $ Value.Export         : num  NA 3025 NA NA 70355 ...
 $ Trade.Difference     : num  NA NA NA NA -63425 ...`
I have noticed that in the variable Reporter and in the variable Partner there are some inconsistencies. For instance some Reporters claim to have imported or exported things to itself. 
Now, I have to get rid of those inconsistencies. All cases in which the variable Reporter and  the variable Partner coincide should be flagged in order to eventually delete those observations.
 
     
    