Check if a region type is valid

Share:

Description

Check if a region type is valid

Usage

1
ebirdregioncheck(loctype, loc, ...)

Arguments

loctype

One of: 'country', 'states', 'counties'

loc

The location code to be checked. A single location only, unless loctype = 'country'.

...

Curl options passed on to GET

Value

A logical vector of the same length as loc.

Author(s)

Sebastian Pardo sebpardo@gmail.com, Andy Teucher andy.teucher@gmail.com

References

http://ebird.org/

Examples

1
2
3
4
5
6
## Not run: 
ebirdregioncheck("country", c("US", "CA"))
ebirdregioncheck("states", "CA-BC")
ebirdregioncheck("counties","CA-BC-GV")

## End(Not run)