get_grids: Create square grids

get_gridsR Documentation

Create square grids

Description

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

## Not run: 
 library(gisr)

 shp <- get_admin0(countries = "Nigeria")

 get_grids(shp, 10000)

## End(Not run)


USAID-OHA-SI/gisr documentation built on Feb. 10, 2024, 8:55 p.m.