ebirdregionspecies: Get a list of species codes ever seen in a location.

View source: R/ebirdregionspecies.R

ebirdregionspeciesR Documentation

Get a list of species codes ever seen in a location.

Description

Returns the eBird codes for all species-level taxa recorded in a particular region or location. Codes are returned in taxonomic order.

Usage

ebirdregionspecies(location, key = NULL, ...)

Arguments

location

Any valid location, USFWS region, subnational2, subnational1, country, or custom region code. (Location can be a hotspot or personal location).

key

eBird API key. You can obtain one from https://ebird.org/api/keygen. We strongly recommend storing it in your .Renviron file as an environment variable called EBIRD_KEY.

...

Curl options passed on to GET

Value

A single column data.frame containing the collected information:

"speciesCode": eBird species code, suitable for joining to the ebirdtaxonomy

Author(s)

David Bradnum david.bradnum@gmail.com

References

http://ebird.org/

Examples

## Not run: 
ebirdregionspecies("GB") # all in Great Britain
ebirdregionspecies("GB-ENG") # all in England
ebirdregionspecies("GB-ENG-LND") # all in London

library(dplyr)
taxonomy <- ebirdtaxonomy()
localSpecies <- ebirdregionspecies("L5803024") # specific hotspot
inner_join(localSpecies, taxonomy)

## End(Not run)

ropensci/rebird documentation built on Nov. 27, 2024, 9:47 p.m.