# 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")
# }
Run the code above in your browser using DataLab