Skip to content

Difference between internal objects world and worldMap breaks checkBorders #136

@ggrittz

Description

@ggrittz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions