rasterise: converts conductanceMatrix to SpatRaster

View source: R/rasterise.R

rasteriseR Documentation

converts conductanceMatrix to SpatRaster

Description

converts conductanceMatrix to SpatRaster

Usage

rasterise(x)

Arguments

x

conductanceMatrix

Value

spatRaster

Author(s)

Joseph Lewis

Examples


r <- terra::rast(system.file("extdata/SICILY_1000m.tif", package="leastcostpath"))

slope_cs <- create_slope_cs(x = r, cost_function = "tobler", neighbours = 4)

cs_rast <- rasterise(slope_cs)

josephlewis/leastcostpath documentation built on Oct. 18, 2023, 2:03 p.m.