getextr: Download distribution data, filter, and merge with climate or...

Description Usage Arguments Examples

View source: R/get_gbif_direct.R

Description

getextr is a function that gets GBIF data and extracts climate or environmental data for each occurrence. This is a whole workflow for distribution data acquisition and value addition that draws on several other functions in vegdistmod including gbif_get and extraction. Parallel option is useful for speeding up data collection for many species when computational resources are available.

Usage

1
2
3
getextr(x, clim = clim, maxrec = 500, schema = "flat",
  rm.outlier = TRUE, alpha = 0.01, factor = 2, nmin = 5,
  parallel = FALSE, nclus = 4)

Arguments

x

A taxon name or list of taxon names. It is sometimes good to test these on the vegdistmod::get_gbif() function first.

clim

A raster object of climate or other environmental data to extract from.

maxrec

Maximum number of records to download.

schema

To be passed to vegdistmod::extraction

rm.outlier

To be passed to vegdistmod::extraction

alpha

To be passed to vegdistmod::extraction

factor

To be passed to vegdistmod::extraction

nmin

To be passed to vegdistmod::extraction

parallel

TRUE or FALSE. Should this be executed in parallel.

nclus

If parallel == TRUE then how many cores should be used? Default is 4.

Examples

1
2
3
4
5
6
7
## Not run: 
abies <- getextr('Abies fraseri', 
clim = clim, maxrec=500, 
schema= 'flat', rm.outlier = TRUE, 
alpha=0.01, factor = 2, nmin = 5, parallel=FALSE, nclus = 4));

## End(Not run)

rsh249/vegdistmod documentation built on May 28, 2019, 3:31 a.m.