Skip to contents

Extract the climatic information from a region slice and organise it as a data frame. This is just a wrapper around terra::as.data.frame().

Usage

df_from_region_slice(x, xy = TRUE)

Arguments

x

climate time slice (i.e. a terra::SpatRaster) generated with region_slice()

xy

a boolean whether x and y coordinates should be added to the dataframe (default to TRUE)

Value

a data.frame where each cell the raster is a row, and the available variables are columns.

Details

To extract a data frame from a region series, see df_from_region_series().