Learn R Programming

roads (version 1.2.0)

CLUSexample: Data from the CLUS example

Description

From Kyle Lochhead and Tyler Muhly's CLUS road simulation example. SpatRaster files created with the terra package must be saved with terra::wrap() and need to be unwrapped before they are used. prepExData() does this.

Usage

data(CLUSexample)

Arguments

Format

A named list with components:

  • cost: a PackedSpatRaster representing road building cost.

  • landings: an sf dataframe of points representing landing locations.

  • roads: a PackedSpatRaster representing existing roads.

Examples

Run this code
CLUSexample
prepExData(CLUSexample)

Run the code above in your browser using DataLab