landscape_as_list: Landscape as list

View source: R/landscape_as_list.R

landscape_as_listR 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))


landscapemetrics documentation built on Sept. 12, 2024, 7:42 a.m.