Learn R Programming

mregions2 (version 1.1.2)

gaz_rest_records_by_names: Get Gazetteer Records for all given names

Description

Get Gazetteer Records for all given names

Usage

gaz_rest_records_by_names(
  names,
  with_geometry = FALSE,
  like = TRUE,
  fuzzy = TRUE
)

Value

A data frame with Gazetteer entries

Arguments

names

(character) Vector with the terms to search in the Marine Regions Gazetteer

with_geometry

(logical) Add geometry to the result data frame? Default = FALSE

like

(logical) Add a '%'-sign before and after the name? (SQL LIKE function). Default = TRUE

fuzzy

(logical) Use Levenshtein query to find nearest matches? Default = TRUE

See Also

gaz_rest, gaz_rest_records_by_name

Examples

Run this code
# \donttest{
gaz_rest_records_by_names(
  c("Belgian Exclusive Economic Zone", "Dutch Exclusive Economic Zone")
)
# }

Run the code above in your browser using DataLab