rasterField: Make a raster from shapefile data

rasterFieldR Documentation

Make a raster from shapefile data

Description

This function makes raster layers from shapefile data.

Usage

rasterField(field, res = 1, trait = NULL, shape = NULL, cex = 1)

Arguments

field

SpatVector. The shapefile to be converted to raster.

res

resolution to make the raster layer.

trait

vector with the traits to be converted to raster.

shape

a specific area inside the field to be converted to raster. If shape=NULL, all field data will be converted.

cex

point size. Please check help("points").

Details

rasterField

Value

A raster stack in form SpatRaster.


filipematias23/cleanRfield documentation built on Aug. 6, 2023, 12:26 a.m.