get_occurrences: Get species occurrences from the ALA or GBIF

Description Usage Arguments Details Author(s) See Also Examples

Description

A simple wrapper to occurrences from ALA4R. Performs a search for a species (e.g. 'Eucalyptus globulus'), sets the download_reason to 'testing' (see ?ala_reasons), and returns only the species, the longitude, and the latitude of all observations.

Usage

1
2
3
get_occurrences_ala(species, ala_args = NULL)

get_occurrences_gbif(species, gbif_args = NULL)

Arguments

species

The full scientific species name, quoted.

ala_args

Optionally, a list of arguments passed to occurrences (ALA4R package).

gbif_args

Optionally, a list of arguments passed to occ_search (rgbif package).

Details

Note that when passing additional arguments to occ_search, the following arguments are already set and can not be overriden : hasGeospatialIssue (FALSE), limit (50000), fields (species, lat and long), and of course scientificName. When passing additional arguments to occurrences, only download_reason (7) is already set.

Author(s)

Remko Duursma

See Also

get_occurrences_gbif

Examples

1
2
3
4
5
6
7
## Not run: 
o <- get_occurrences_ala("Eucalyptus botryoides")

# Should return a message like:
# INFO [2017-05-12 09:52:10] ALA returned 3274 records for Eucalyptus botryoides in 2.6 sec.

## End(Not run)

RemkoDuursma/speciesmap documentation built on Feb. 24, 2018, 3:39 p.m.