Skip to contents

Create square grids

Usage

get_grids(spdf, size = 15000, clip = TRUE)

Arguments

spdf

input spatial data frame

size

size of each hex bin in meters, default set to 15K meters (15KM)

clip

Should the output be cliped to the input boundaries? Default is TRUE

Value

country hex polygon as feature class

Examples

if (FALSE) {
 library(gisr)

 shp <- get_admin0(countries = "Nigeria")

 get_grids(shp, 10000)
}