Learn R Programming

leastcostpath (version 2.0.12)

rasterise: converts conductanceMatrix to SpatRaster

Description

converts conductanceMatrix to SpatRaster

Usage

rasterise(x)

Value

spatRaster

Arguments

x

conductanceMatrix

Author

Joseph Lewis

Examples

Run this code

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)

Run the code above in your browser using DataLab