df_from_region_slice: Extract data frame from a region slice

View source: R/df_from_region_slice.R

df_from_region_sliceR Documentation

Extract data frame from a region slice

Description

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)

Details

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

Value

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


EvolEcolGroup/pastclim documentation built on Nov. 6, 2023, 5:11 a.m.