I am looking at world bank data, and trying to get rid of the arbitrary regions they force into the data (e.g. High income countries). The approach I feel makes sense is to remove the observations for which
Code:
iso2code == "" | strmatch(iso2code,"X*") | strmatch(countryname,"*income*") | strmatch(iso2code,"%?") | strmatch(iso2code,"?%") | strmatch(iso2code,"%%")
Of course, in the above I have totally made up
Code:
strmatch(iso2code,"%?") | strmatch(iso2code,"?%") | strmatch(iso2code,"%%")
A bit stuck on how to do that...
0 Response to Find digit(s) in string
Post a Comment