landscapemetrics (version 1.4.4)

raster_to_points: raster_to_points

Description

Raster to points

Usage

raster_to_points(landscape, return_NA)

# S3 method for RasterLayer raster_to_points(landscape, return_NA = TRUE)

# S3 method for RasterStack raster_to_points(landscape, return_NA = TRUE)

# S3 method for RasterBrick raster_to_points(landscape, return_NA = TRUE)

# S3 method for stars raster_to_points(landscape, return_NA = TRUE)

# S3 method for list raster_to_points(landscape, return_NA = TRUE)

Arguments

landscape

Raster* Layer, Stack, Brick or a list of rasterLayers.

return_NA

If true, NA cells are also included

Value

matrix

Details

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

Examples

Run this code
# NOT RUN {
raster_to_points(landscape)

# }

Run the code above in your browser using DataLab