getRangeArea: Obtain range area from species shapefiles

View source: R/getRangeArea.R

getRangeAreaR Documentation

Obtain range area from species shapefiles

Description

Rasterize shapefile of multiple polygons to individual global rasters with a specific resolution

Usage

getRangeArea(
  dsn = paste0(getwd(), "IUCN/AMPHIBIANS.shp"),
  id = "binomial",
  name_split = c(1, 2),
  no_species = NA,
  seasonal = NA,
  origin = NA,
  presence = NA,
  make_valid = F,
  crs = "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0"
)

Arguments

dsn

Path to one shapefile with multiple polygons or a list of files

id

character Character specifying the id column

name_split

integer Specifies which splits to use, default is c(1,2).

no_species

Range

seasonal

integer ...

origin

integer

presence

integer

make_valid

logical Default to FALSE. If TRUE polygons are tried to be made valid using sf::st_make_valid()

crs

character

Value

data.frame with the range area of each species

Examples

## Not run: 
getRangeArea()

## End(Not run)

RS-eco/rasterSp documentation built on Jan. 24, 2023, 12:06 a.m.