Function to pull numeric EEZ code using EEZ name

get_region_id(region_name, region_source = "eez", key)

Arguments

region_name

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

region_source

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

key

string, API token

Value

dataframe, eez code and EEZ name for matching EEZs