coffeetime: coffeetime: Calculates the distance to the nearest Starbucks

Description Usage Arguments Value Examples

View source: R/dsademo.R

Description

coffeetime: Calculates the distance to the nearest Starbucks

Usage

1
coffeetime(place)

Arguments

place

A vector of length 2 containing the numeric lat in position 1, and the numeric long in position 2, e.g. "41.42326, -73.94992"

Value

A numeric vector of length 1 containing distance to the nearest Starbucks from place in kilometers.

Examples

1
2
3
4
5
## Not run: 
woods <- c(lat=41.42326, lng=-73.94992)
coffeetime(woods)

## End(Not run)

DerekYves/dsademo documentation built on May 6, 2019, 2:10 p.m.