Learn R Programming

landscapemetrics (version 1.5.6)

raster_to_points: raster_to_points

Description

Raster to points

Usage

raster_to_points(landscape, return_NA = TRUE)

Value

matrix

Arguments

landscape

Raster* Layer, Stack, Brick, SpatRaster (terra), stars, or a list of rasterLayers.

return_NA

If true, NA cells are also included

Details

Wrapper around raster::xyFromCell and raster::getValues to get raster_to_points function including NA values

Examples

Run this code
raster_to_points(landscape)

Run the code above in your browser using DataLab