ebirdsubregionlist: List sub-regions within a specified region.

Description Usage Arguments Value Author(s) References Examples

View source: R/ebirdsubregionlist.R

Description

List sub-regions within a specified region.

Usage

1
2
3
4
5
6
ebirdsubregionlist(
  regionType = c("country", "subnational1", "subnational2"),
  parentRegionCode,
  key = NULL,
  ...
)

Arguments

regionType

The type of region to search for. Must be one of 'country', 'subnational1' or 'subnational2'.

parentRegionCode

The region to search within. Must be a valid country or subnational1 code. If ‘regionType' is ’country' then this parameter is ignored (since the search will automatically be world-wide).

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 data.frame containing:

"code": eBird code for the subregion

"name": full name for the subregion

Author(s)

David Bradnum dbradnum@gmail.com

References

http://ebird.org/

Examples

1
2
3
4
5
6
## Not run: 
ebirdsubregionlist("country")
ebirdsubregionlist("subnational1", "US")
ebirdsubregionlist("subnational2", "US-NY")

## End(Not run)

rebird documentation built on Sept. 20, 2021, 9:06 a.m.