Learn R Programming

chillR (version 0.75)

load_ClimateWizard_scenarios: 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)

Value

a list of temperature scenarios.

Arguments

path

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

prefix

character string specifying the prefix for all files.

Author

Eike Luedeling

Examples

Run this code

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")

 

Run the code above in your browser using DataLab