rmap_add_ranges: Add polygons to a rangeMapper project

rmap_add_rangesR Documentation

Add polygons to a rangeMapper project

Description

Add polygon ranges (usually species or populations distribution ranges) to a rangeMapper project

Usage

rmap_add_ranges(con, x, ID)

## S4 method for signature 'rmapConnection,sf,character'
rmap_add_ranges(con, x, ID)

Arguments

con

a rangeMapper connection made with rmap_connect().

x

a spatial polygon object of class sf (see sf::st_as_sf() ) .

ID

character string. name of the ID column, usually species name.

Details

Polygons are saved as WKB (see sf::st_as_binary()).

Value

TRUE when the table is written to the project file, FALSE otherwise.

Examples

con = rmap_connect()
wrens = read_wrens()
rmap_add_ranges(con, x = wrens, ID = 'sci_name')
dbDisconnect(con)


mpio-be/rangeMapper documentation built on Oct. 6, 2022, 7:42 p.m.