make_grid: Makes a grid set of coordinates

Description Usage Arguments Value Author(s) See Also Examples

View source: R/v3_make_grid.R

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

1
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

Author(s)

Arturo Cardenas

See Also

denue_grid

Examples

1
2
3
4
5
latitud1 <- 25.66919
latitud2 <- 25.169194
longitud1 <- -100.30990
longitud2 <- -101.20102
setofcoords <- make_grid(latitud1, latitud2, longitud1, longitud2)

inegiR documentation built on July 14, 2019, 5:02 p.m.