Learn R Programming

spacey (version 0.1.1)

get_coord_bounding_box: Get bounding box for set of coordinate points

Description

Get bounding box for set of coordinate points

Usage

get_coord_bounding_box(lat, lng)

Arguments

lat

A vector of latitudes

lng

A vector of longitudes

Value

A list of length 2, containing the bottom-left (named "bl") and top-right (named "tr") coordinates of the bounding box.

Examples

Run this code
# NOT RUN {
df <- data.frame(
  lat = c(44.05771, 44.18475),
  lng = c(-73.99212, -73.81515)
)
get_coord_bounding_box(df$lat, df$lng)
# }

Run the code above in your browser using DataLab