thelist_layer: Find layer by pattern

Description Usage Arguments Details Value Examples

View source: R/thelist_wfs.R

Description

List layers have names like "Public_OpenDataWFS:LIST_Cadastral_Parcels", so we have a simple string lookup to find the right layer.

Usage

1
thelist_layer(x, random = FALSE)

Arguments

x

string pattern to match, e.g. "cadastral"

random

allow random selection of one ignoring 'x', 'FALSE' by default

Details

Approximate matching is used, if you need to be exact look at list_layers and choose it deliberately.

Value

character string, one of list_layers

Examples

1
2
3
thelist_layer("cadastral")
thelist_layer("cadastre")
thelist_layer(random = TRUE)

mdsumner/thelist documentation built on Dec. 21, 2021, 4:51 p.m.