sf_LatLongGrid: Make polygon grid over 'sf' feature using lat-lon coordinates

Description Usage Arguments Value Creation notes

Description

Make polygon grid over sf feature using lat-lon coordinates. This can be used to split data into regions determined by the exported grid. Can be used to create a standard grid using the bounding box of the original feature or a 'pretty' grid that locks grid edges to more even numbers.

Usage

1
2
3
4
5
6
7
sf_LatLongGrid(
  sfLayer,
  gridSize = 1,
  prettyGrid = TRUE,
  epsg = 4269,
  output = c("polygon", "raster")
)

Arguments

sfLayer

sf object

gridSize

grid resolution, uses coordinate system measurement. Default: 1

prettyGrid

logical, Use pretty grid measuremetns? Defalut: TRUE

epsg

an EPSG key

output

character, Do you want a polygon or raster output of the estimated grid?

Value

Returns either a raster or sf Polygon grid to overlay over the sfLayer data.

Creation notes

First created on 2019-Apr-02 in 1-2_FIA_CleanRawData.R


jacpete/jpfxns2 documentation built on May 10, 2020, 9:15 p.m.