Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

oe_match_pattern

Check patterns in the provider's databases


Description

This function is used to explore the provider's databases and look for patterns. This function can be useful in combination with oe_match() and oe_get() for an easy match. See Examples.

Usage

oe_match_pattern(
  pattern,
  provider = "geofabrik",
  match_by = "name",
  full_row = FALSE
)

Arguments

pattern

Character string representing the pattern that should be explored.

provider

Which provider should be used? Check a summary of all available providers with oe_providers().

match_by

Column name of the provider's database that will be used to find the match.

full_row

Boolean. Return all columns for the matching rows? FALSE by default.

Value

A character vector or a subset of the provider's database.

Examples

## Not run: 
oe_match("Yorkshire", quiet = FALSE)
## End(Not run)
oe_match_pattern("Yorkshire")

res = oe_match_pattern("Yorkshire", full_row = TRUE)
sf::st_drop_geometry(res)[1:3]

osmextract

Download and Read OpenStreetMap Data Extracts

v0.2.1
GPL-3
Authors
Andrea Gilardi [aut, cre] (<https://orcid.org/0000-0002-9424-7439>), Robin Lovelace [aut] (<https://orcid.org/0000-0001-5679-6536>), Barry Rowlingson [ctb] (<https://orcid.org/0000-0002-8586-6625>), Salva Fernández [rev] (Salva reviewed the package (v. 0.1) for rOpenSci, see <https://github.com/ropensci/software-review/issues/395>), Nicholas Potter [rev] (Nicholas reviewed the package (v. 0.1) for rOpenSci, see <https://github.com/ropensci/software-review/issues/395>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.