A single location in plantR::worldMap does not exist in plantR::world: the "caspian sea".
Here:
> setdiff(worldMap$NAME_0, world$name)
[1] "caspian sea"
Because of this, the internal function plantR:::shares_border does not work
> share_border <- suppressMessages(suppressWarnings(shares_bord(country.shp[check_these],
+ country.gazet[check_these])))
Error in (function (country1 = "brazil", country2 = "argentina") :
Country name(s) 'caspian sea' not found
My first intuition is just to remove "caspian sea" since it is not a country...but since GADM considers it to be a separate administrative unit that is shared between five countries, it is also possible to simply add it to the world object.
A single location in
plantR::worldMapdoes not exist inplantR::world: the "caspian sea".Here:
Because of this, the internal function
plantR:::shares_borderdoes not workMy first intuition is just to remove "caspian sea" since it is not a country...but since GADM considers it to be a separate administrative unit that is shared between five countries, it is also possible to simply add it to the
worldobject.