When testing this I also discovered that the current example correlating GDP/capita and the Ease of doing business index fails due to the former being available through 2017, and the latter only being available for 2018. So this also adds some code to merge the 2018 business index with the 2017 GDP/capita to get the correlation working.
OEC
is no longer a valid value ofincomelevel
(see https://github.com/OliverSherouse/wbdata/issues/28), so this replacesOEC
withHIC
.When testing this I also discovered that the current example correlating GDP/capita and the Ease of doing business index fails due to the former being available through 2017, and the latter only being available for 2018. So this also adds some code to merge the 2018 business index with the 2017 GDP/capita to get the correlation working.