View source: R/02_gaz_relations.R
gaz_relations | R Documentation |
Walk the hierarchy of the MarineRegions Gazetter given a Gazetteer MRGID or Gazetteer entries
gaz_relations(x, ...)
## S3 method for class 'numeric'
gaz_relations(x, ...)
## S3 method for class 'mr_df'
gaz_relations(x, ...)
x |
the object from which the relations are retrieved. Can be:
|
... |
Arguments passed on to
|
You can pass the output of most gaz_*
functions to gaz_relations()
to retrieve the
related gazetteer entries
This is done in the method gaz_relations.mr_df()
. mr_df
is a class defined in
this package to ensure the data frame passed to gaz_relations has a variable with MRGID.
A data frame with Gazetteer entries
# Get the relations of the Belgian Exclusive Economic Zone
gaz_search("Belgian Exclusive Economic Zone") %>% gaz_relations()
# Or using its mrgid
gaz_relations(3293)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.