Learn R Programming

landscapemetrics (version 2.1.4)

landscape_as_list: Landscape as list

Description

Convert raster input to list

Usage

landscape_as_list(landscape)

# S3 method for SpatRaster landscape_as_list(landscape)

# S3 method for RasterLayer landscape_as_list(landscape)

# S3 method for RasterBrick landscape_as_list(landscape)

# S3 method for RasterStack landscape_as_list(landscape)

# S3 method for stars landscape_as_list(landscape)

# S3 method for list landscape_as_list(landscape)

# S3 method for matrix landscape_as_list(landscape)

# S3 method for numeric landscape_as_list(landscape)

# S3 method for PackedSpatRaster landscape_as_list(landscape)

Value

list

Arguments

landscape

A categorical raster object: SpatRaster; Raster* Layer, Stack, Brick; stars or a list of SpatRasters

Details

Mainly for internal use

Examples

Run this code
landscape <- terra::rast(landscapemetrics::landscape)
landscape_as_list(c(landscape, landscape))

Run the code above in your browser using DataLab