oe_match_pattern: Check patterns in the provider's databases
Description
This function is used to explore all provider's databases and look for
matches. This function can be useful in combination with oe_match() and
oe_get() for an exploratory analysis and an easy match. See Examples.
Usage
oe_match_pattern(pattern, ...)
# S3 method for numeric
oe_match_pattern(pattern, full_row = FALSE, ...)
# S3 method for sf
oe_match_pattern(pattern, full_row = FALSE, ...)
# S3 method for bbox
oe_match_pattern(pattern, full_row = FALSE, ...)
# S3 method for sfc
oe_match_pattern(pattern, full_row = FALSE, ...)
# S3 method for character
oe_match_pattern(pattern, match_by = "name", full_row = FALSE, ...)
Value
A list of character vectors or sf objects (according to the value
of the parameter full_row). If no OSM zone can be matched with the input
string, then the function returns an empty list.
Arguments
pattern
Description of the pattern. Can be either a length-1 character
vector, an sf/sfc/bbox object, or a numeric vector of coordinates
with length 2. In the last case, it is assumed that the EPSG code is 4326
specified as c(LON, LAT), while you can use any CRS with sf/sfc/bbox
objects.
...
arguments passed to other methods
full_row
Boolean. Return all columns for the matching rows? FALSE by
default.
match_by
Name of the column in the provider's database that will be
used to find the match in case of character input. In all the other cases,
the match is performed using a spatial overlay operation and the output
returns the values stored in the name column (or even the full sf
object when full_row is TRUE).