Function to pull numeric code using region name

get_region_id(region_name, region_source = "EEZ", key = gfw_auth())

Arguments

region_name

string or numeric, EEZ/MPA/RFMO name or id

region_source

string, source of region data ('eez', 'mpa', 'rfmo')

key

string, API token

Value

dataframe, eez code and EEZ name for matching EEZs