load_paleoclim: Load data from PaleoClim

View source: R/paleoclim.R

load_paleoclimR Documentation

Load data from PaleoClim

Description

Loads a PaleoClim data file (.zip format) into R as a SpatRaster.

Usage

load_paleoclim(file, as = c("terra", "raster"))

Arguments

file

Character. Path to a *.zip file downloaded from PaleoClim.

as

Character. as = "raster" returns a RasterStack object (see raster::stack()) instead of the default raster from the terra package. It is provided for backwards compatibility and will be removed in future versions. Requires the raster package.

Value

SpatRaster object (see terra::rast()) with each bioclimatic variable as a separate named layer.

Examples

file <- system.file("testdata", "LH_v1_10m_cropped.zip",
                    package = "rpaleoclim")
load_paleoclim(file)

joeroe/rpaleoclim documentation built on Aug. 25, 2023, 1:12 a.m.