make.grid.prevR: Create a spatial grid from an object of class prevR.

View source: R/make.grid.prevR.r

make.grid.prevRR Documentation

Create a spatial grid from an object of class prevR.

Description

This function generates a spatial rectangular grid from the slot boundary of an object of class prevR; function used in particular by the methods kde(), krige() and idw().

Usage

make.grid.prevR(object, nb.cells = 100, cell.size = NULL)

Arguments

object

object of class prevR.

nb.cells

number of cells on the longest side of the studied area (unused if cell.size is defined).

cell.size

size of each cell (in the unit of the projection).

Details

This function generates a spatial rectangular grid, each cell corresponding to the center of a square of side cell.size. If cell.size is not defined, side of cells will be calculated as the longest side of the slot boundary of object divided by nb.cells.

Value

Object of class sf::sfc (simple feature geometry list column).

See Also

sf::st_make_grid()

Examples

make.grid.prevR(fdhs)
make.grid.prevR(fdhs, nb.cells = 200)

prevR documentation built on May 31, 2023, 7:32 p.m.