blank.raster: Blank raster

View source: R/misc.R

blank.rasterR Documentation

Blank raster

Description

This functions creates a blank SpatRaster based on the spatial extent of a sf object.

Usage

blank.raster(x, res)

Arguments

x

sf::st_sf() object.

res

numeric vector specifying resolution of the output raster in the x and y dimensions. If vector is of length one, then the pixels are assumed to be square.

Examples

## Not run: 
# make sf data
polys <- sim.pus(225L)

# make raster from sf
blank.raster(polys, 1)

## End(Not run)

raptr documentation built on March 31, 2023, 9:46 p.m.