focal_point: Define focal_point

Description Usage Arguments Details Value Examples

View source: R/focal_point.R

Description

Define focal_point

Usage

1
focal_point(city = NULL, country = NULL, x = NULL, y = NULL)

Arguments

city

Name of city appearing in maps::world.cities database

x

Longitude of point of interest, provided as alternate to city name

y

Latitude of point of interest, provided as alternate to city name

county

Name of country of city

Details

Prompt for x and y coordinate if city name not found

Value

An sf object

Examples

1
2
3
4
focal_point(city = "Worcester", country = "USA")
focal_point(city = "Worcester", country = "UK")
focal_point(city = "Worcester", country = "South Africa")
focal_point(x = 15, y = -19.1)

agroimpacts/covid19clark documentation built on Nov. 19, 2020, 7:22 p.m.