Assign the data from the country database to the country shapefile

join_database_shapefile(countries_database, countries_shapefile)

Arguments

countries_database

a data.frame with the country database and with a COUNTRY column

countries_shapefile

a raster::shapefile file with a COUNTRY attribute

Value

a SpatialPolygonsDataFrame with the country database adjoined