df_from_region_slice {pastclim} | R 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 |
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.
[Package pastclim version 2.1.0 Index]