rasterise {leastcostpath}R 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)

[Package leastcostpath version 2.0.12 Index]