Learn R Programming

inegiR (version 3.0.0)

make_grid: Makes a grid set of coordinates

Description

Returns a set of coordinates that intertwine to create an area larger than 5 kilometers. Suggestion by Arturo Cardenas https://github.com/arturocm.

Usage

make_grid(lat1, lat2, lon1, lon2, space_lat = 0.07, space_lon = 0.07)

Arguments

lat1

First corner (latitud). Must be numeric.

lat2

Second corner (latitud). Must be numeric.

lon1

First corner (longitud). Must be numeric.

lon2

Second corner (longitud). Must be numeric.

space_lat

Space between latitud coordinates defaults to 0.07 degrees

space_lon

Space between longitud coordinates defaults to 0.07 degrees

Value

Data.frame

See Also

denue_grid

Examples

Run this code
# NOT RUN {
latitud1 <- 25.66919
latitud2 <- 25.169194
longitud1 <- -100.30990
longitud2 <- -101.20102
setofcoords <- make_grid(latitud1, latitud2, longitud1, longitud2)
# }

Run the code above in your browser using DataLab