View source: R/landscape_as_list.R
landscape_as_list | R Documentation |
Convert raster input to list
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)
landscape |
A categorical raster object: SpatRaster; Raster* Layer, Stack, Brick; stars or a list of SpatRasters |
Mainly for internal use
list
landscape <- terra::rast(landscapemetrics::landscape)
landscape_as_list(c(landscape, landscape))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.