View source: R/region_names_search.R
mr_names_search | R Documentation |
Search for region names
mr_names_search(x, q = NULL, ...)
x, q |
Either a |
... |
Parameters passed on to |
NULL
if no matches found, or a data.frame, or tibble, of class
tbl_df
, with slots:
name (character) - name of the region, which is a combination of the name_first and name_second, e.g., Morocco:elevation_10m
title (character) - title for the region
name_first (character) - first part of the name, e.g., Morocco
name_second (character) - second part of the name, e.g., elevation_10m
## Not run: # Get region names with mr_names() function (res <- mr_names("MarineRegions:eez")) # to save time, pass in the result from mr_names() mr_names_search(res, q = "Amer") # if you don't pass in the result from mr_names(), we have to # call mr_names() internally, adding some time mr_names_search(x = "iho", q = "Black") mr_names_search(x = "iho", q = "Sea") # more examples mr_names_search("iho", "Sea") (res <- mr_names("MarineRegions:iho")) mr_names_search(res, q = "Sea") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.