load_ClimateWizard_scenarios: Load climate wizard scenarios

View source: R/save_temperature_scenarios.R

load_ClimateWizard_scenariosR Documentation

Load climate wizard scenarios

Description

This is a slightly modified version of the load_temperature_scenarios function that can load climate scenarios downloaded with the getClimateWizardData and saved with the save_temperature_scenarios function. This separate function is necessary, because the climate scenarios are expressed as lists, with one element being a data.frame.

Usage

load_ClimateWizard_scenarios(path, prefix)

Arguments

path

character string indicating the file path where the files are to be written.

prefix

character string specifying the prefix for all files.

Value

a list of temperature scenarios.

Author(s)

Eike Luedeling

Examples


temps<-list(Element1=data.frame(a=1,b=2),Element2=data.frame(a=c(2,3),b=c(8,4)))
# save_temperature_scenarios(temps,path=getwd(),prefix="temperatures")
# temps_reloaded<-load_temperature_scenarios(path=getwd(),prefix="temperatures")

 

chillR documentation built on Nov. 28, 2023, 1:09 a.m.