landscape_as_list {landscapemetrics} | R Documentation |
Landscape as list
Description
Convert raster input to list
Usage
landscape_as_list(landscape)
## S3 method for class 'SpatRaster'
landscape_as_list(landscape)
## S3 method for class 'RasterLayer'
landscape_as_list(landscape)
## S3 method for class 'RasterBrick'
landscape_as_list(landscape)
## S3 method for class 'RasterStack'
landscape_as_list(landscape)
## S3 method for class 'stars'
landscape_as_list(landscape)
## S3 method for class 'list'
landscape_as_list(landscape)
## S3 method for class 'matrix'
landscape_as_list(landscape)
## S3 method for class 'numeric'
landscape_as_list(landscape)
## S3 method for class 'PackedSpatRaster'
landscape_as_list(landscape)
Arguments
landscape |
A categorical raster object: SpatRaster; Raster* Layer, Stack, Brick; stars or a list of SpatRasters |
Details
Mainly for internal use
Value
list
Examples
landscape <- terra::rast(landscapemetrics::landscape)
landscape_as_list(c(landscape, landscape))
[Package landscapemetrics version 2.1.4 Index]