raster_to_points: raster_to_points

View source: R/raster_to_points.R

raster_to_pointsR Documentation

raster_to_points

Description

Raster to points

Usage

raster_to_points(landscape, return_NA = TRUE)

Arguments

landscape

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

return_NA

If true, NA cells are also included

Details

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

Value

matrix

Examples

landscape <- terra::rast(landscapemetrics::landscape)
raster_to_points(landscape)


r-spatialecology/landscapemetrics documentation built on April 3, 2024, 2:21 a.m.