Help with Merging and Plotting Datasets

Hi,

I need help, amateur coder here,

I have two excel data files, both are pretty much identical but is slightly different in the data that it contains are different. Both files have Country and Year, while one measures Co2 emissions and the other Gdp per cap data for the respective year and country.

Using R markdown, how could I go about combining these data sets, and then creating a scatter plot that shows co2 emissions against Gdp Per cap for every country for a certain year?

Any help would be greatly appreciated, I've been at it for ages and I am Stumped as to how to get it to work!

You can perform a "join" operation, the dplyr package has functions for that, I think dplyr::inner_join() is what you are looking for

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

Thankyou for your help!

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.