prepPAcountry: Prepare polygons for PA calculations

Description Usage Arguments Value Examples

View source: R/prepPAcountry.R

Description

Generates files for subsequent use. Optionally exports polygon as shapefile "basinpacover.shp".

Usage

1
prepPAcountry(PAcov = NA, pBasin = NA, make_shape = FALSE)

Arguments

PAcov

Input file with PA cover polygons. Created from prepPAcover.

pBasin

Input file with basin polygons.

make_shape

Logical (TRUE/FALSE). Generate polygon shapefile of protected areas in 3 classes in species range. With country and basin attributes.

Value

Files for future use. Optionally exports polygon as shapefile "basinpacover.shp".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# Load shapefiles needed
# These large files are not available via github package. 
# Download "shapes.zip" from :
# https://drive.google.com/open?id=1QQArA7pPLemUVQTKx7PxigsQXKpOG0YQ
# For the code below to work, 
# extract files in "shapes.zip" to cmartr/inst/shape .
Pcov <- system.file("shape/pacover.shp", package="cmartr")
B <- system.file("shape/amazon_orinoco.shp", package="cmartr")
pacovc <- prepPAcountry(PAcov = Pcov, pBasin = B)

## End(Not run)

darrennorris/cmartr documentation built on May 23, 2020, 10:10 p.m.