mr_obis_eez_id: Get OBIS EEZ id

Description Usage Arguments Details Value Examples

View source: R/obis_eez_id.R

Description

Get OBIS EEZ id

Usage

1

Arguments

x

(character) An Exclusive Economic Zone name

Details

internally we use the OBIS API to retrieve an EEZ id.

Matching internally is case insensitive, as we convert your input and match against EEZ names that are all lower case.

Value

An integer EEZ ID if a match found in list of EEZ's, or NULL if no match found.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# You can get EEZ names via the mr_names() function
(res <- mr_names('MarineRegions:eez_boundaries'))
mr_obis_eez_id(res$eez1[19])

# Or pass in a name
mr_obis_eez_id("Bulgarian Exclusive Economic Zone")

# case doesn't matter
mr_obis_eez_id("bulgarian exclusive economic zone")

# No match, gives NULL
mr_obis_eez_id("stuff things")

## End(Not run)

mregions documentation built on May 2, 2019, 6:53 a.m.