mr_geo_code: Geocode with Marineregions

Description Usage Arguments Value Examples

View source: R/geo_code.R

Description

Geocode with Marineregions

Usage

1
mr_geo_code(place, like = TRUE, fuzzy = FALSE, ...)

Arguments

place

(character) a place name

like

(logical) adds a percent-sign before and after place value (a SQL LIKE function). Default: TRUE

fuzzy

(logical) Uses Levenshtein query to find nearest matches. Default: FALSE

...

Curl options passed on to GET

Value

If no results, an empty list. If results found, a data.frame with the columns:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# search for 'oost', like=TRUE, and not fuzzy
mr_geo_code(place = "oost", like = TRUE, fuzzy = FALSE)

# search for 'oost', like=FALSE, and not fuzzy
mr_geo_code(place = "oost", like = FALSE, fuzzy = FALSE)

# search for 'oost', like=FALSE, and fuzzy
mr_geo_code(place = "oost", like = FALSE, fuzzy = TRUE)

# search for 'oost', like=TRUE, and fuzzy
mr_geo_code(place = "oost", like = TRUE, fuzzy = TRUE)

# search for 'ast', like=TRUE, and fuzzy
mr_geo_code(place = "ast", like = TRUE, fuzzy = TRUE)

## End(Not run)

mregions documentation built on May 2, 2019, 6:53 a.m.