Description Usage Arguments Value Examples
View source: R/prepPAcountry.R
Generates files for subsequent use. Optionally exports polygon as shapefile "basinpacover.shp".
1 | prepPAcountry(PAcov = NA, pBasin = NA, make_shape = FALSE)
|
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. |
Files for future use. Optionally exports polygon as shapefile "basinpacover.shp".
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.