Filter the catalogue by theme, keyword, year, extent, or resolution
Source:R/catalogue.R
find_layer.RdApplies each supplied filter in turn and returns the layers that
satisfy all of them. Layers whose readme leaves a filtered
field blank cannot be tested, so they are excluded — a filter
narrows to layers known to match, and check_metadata() shows
which readmes are keeping a layer out.
Usage
find_layer(
theme = NULL,
keyword = NULL,
year = NULL,
extent = NULL,
resolution = NULL,
crs = NULL,
verbose = TRUE,
...
)Arguments
- theme
Optional character; theme folder name(s).
- keyword
Optional character; matched case-insensitively against title, keywords, abstract, and layer name. Multiple keywords match layers containing any of them.
- year
Optional numeric; a single year or a
c(min, max)range, tested against the layer's vintage.- extent
Optional numeric
c(xmin, xmax, ymin, ymax)in decimal degrees; keeps layers whose bounding box overlaps it.- resolution
Optional numeric; a single resolution in metres or a
c(min, max)range.- crs
Optional character; matched case-insensitively against both the authority code and the CRS name, so
"3400","EPSG:3400", and"Alberta 10-TM"all work. Only readmes carrying aCoordinate Reference Systemblock can be matched;check_metadata()shows which ones do not.- verbose
Logical; if
TRUE(default), print the matches.- ...
Passed to
build_catalogue().