sample_from_raster_coords: sample set of pixels defined by row and col from raster data

View source: R/sample_from_raster_coords.R

sample_from_raster_coordsR Documentation

sample set of pixels defined by row and col from raster data

Description

sample set of pixels defined by row and col from raster data

Usage

sample_from_raster_coords(input_rast, xy, input_mask = NULL)

Arguments

input_rast

SpatRaster. raster to extract data from

xy

data.frame coordinates.

input_mask

SpatRaster. mask corresponding to raster to extract data from

Value

rast_sample dataframe. pixel/plot info extracted from input_rast


jbferet/biodivMapR documentation built on April 12, 2025, 1:32 p.m.