prepBasin: Prepare basin polygons

Description Usage Arguments Details Value Examples

View source: R/prepBasin.R

Description

Generates files for subsequent use. Optionally creates "SpeciesBasin.shp" .

Usage

1
prepBasin(Bain = NA, make_shape = FALSE)

Arguments

Bain

Input file with basin polygons

make_shape

Logical (TRUE/FALSE). Generate polygon shapefile covering basins with species locations ("SpeciesBasin.shp").

Details

Takes georeferenced polygons of river basins

Value

Files for subsequent use in "PrepPAcover.R".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# 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 
B <- system.file("shape/amazon_orinoco.shp", package="cmartr")
sfclean <- cmartr::prepBasin(Bain = pBasin)

## End(Not run)

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