powered by
Add polygon ranges (usually species or populations distribution ranges) to a rangeMapper project
rmap_add_ranges(con, x, ID)# S4 method for rmapConnection,sf,character rmap_add_ranges(con, x, ID)
# S4 method for rmapConnection,sf,character rmap_add_ranges(con, x, ID)
TRUE when the table is written to the project file, FALSE otherwise.
a rangeMapper connection made with rmap_connect().
rmap_connect()
a spatial polygon object of class sf (see sf::st_as_sf() ) .
sf
sf::st_as_sf()
character string. name of the ID column, usually species name.
Polygons are saved as WKB (see sf::st_as_binary()).
sf::st_as_binary()
con = rmap_connect() wrens = read_wrens() rmap_add_ranges(con, x = wrens, ID = 'sci_name') dbDisconnect(con)
Run the code above in your browser using DataLab