fertiliser_weight: Create a fertiliser weight raster

View source: R/fertiliser_weight.R

fertiliser_weightR Documentation

Create a fertiliser weight raster

Description

Create a fertiliser weight raster as a function of estimated nrm fertiliser tonnes and landuses.

Usage

fertiliser_weight(fert_nrm, fert_landuses, outfile, return_rast = FALSE)

Arguments

fert_nrm

A file path to vector data or an sf object.

fert_landuses

A file path to raster file or a RasterLayer object.

outfile

Character. Output raster file path. If not provided, RasterLayer will be returned to R.

return_rast

Logical. Should the RasterLayer be returned to R? Ignored if outfile is not provided.

Value

If outfile is specified, the resulting RasterLayer is saved as to that path. If return_rast is TRUE or outfile is not specified, the resulting RasterLayer is returned, otherwise NULL is returned invisibly.


jscamac/edmaps documentation built on June 11, 2022, 1:26 a.m.