match_funs: Find available sections, services, or layers using a regular...

Description Usage Arguments Value Examples

Description

These functions allow you to search for sections, services, or layers that are available in the WDNR ArcGIS REST API using a regular expression. This is useful when you don't know the full name of a section, service, or layer but want to search based on keywords

Usage

1
2
3
4
5
match_sections(...)

match_services(..., sections = NULL, pull = TRUE)

match_layers(..., sections = NULL, services = NULL, pull = TRUE)

Arguments

...

Character vector or regular expression to match on

sections

A character vector of available sections to subset by

pull

Logical. Pull unique values (TRUE, default) or show the matching rows in the service_urls data.frame

services

A character vector of available services to subset by

Value

A character vector of all matching sections, services, or layers appropriate to the called function

Examples

1
2
3
match_sections("WT")
match_services("Fish", sections = match_sections("WT"))
match_layers("Fish", sections = match_sections("WT"))

wdnr.gis documentation built on March 5, 2021, 5:06 p.m.