Learn R Programming

mregions2 (version 1.1.2)

gaz_rest_relations_by_mrgid: Retrieve Gazetter Relations by MRGID

Description

Retrieve Gazetter Relations by MRGID

Usage

gaz_rest_relations_by_mrgid(
  mrgid,
  with_geometry = FALSE,
  direction = "both",
  type = "all"
)

Value

A data frame with Gazetteer entries

Arguments

mrgid

(integer) A valid Marine Regions Gazetteer Identifier (MRGID)

with_geometry

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

direction

(character) Must be one of upper, lower, both:

  • upper: lists all parents of the record.

  • lower: lists all childs of the record.

  • both: lists parents and childs of the record (default)

type

(character) Must be one of partof, partlypartof, adjacentto, similarto, administrativepartof, influencedby, all.

See Also

Examples

Run this code
# \donttest{
gaz_rest_relations_by_mrgid(7378)
# }

Run the code above in your browser using DataLab