Quantcast
Viewing all articles
Browse latest Browse all 206316

Merging data frames with partial Matching using R

Lets say I have data frame df1 with the following variables

Continent   Country
1   Europe  Russia
2   Asia    Myanmar (Burma)
3   africa  Benin
4   africa  Botswana
5   africa  Burkina

and df2 with the following variables

Continent   Country
1   Europe  Russian Federation
2   Asia    Myanmar
3   africa  Benin,new
4   africa  Botswana
5   africa  Burkina

How do I combine the 2 df together by Country using partial matching


Viewing all articles
Browse latest Browse all 206316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>