Learn R Programming

futureheatwaves (version 1.0.3)

checkCustomBounds: Check year boundaries for errors

Description

This function inputs the boundary lists specified in gen_hw_set, thresholdBoundaries, projectionBoundaries, and referenceBoundaries, and checks them for errors in structure of the input or in the years selected.

Usage

checkCustomBounds(boundList, dataDirectories)

Arguments

boundList
A set of boundary years in the format c(start year, end year).
dataDirectories
A list object, with two elements, one for each of the two subdirectories included in the main directory. Typically, these will be separate directories of historical and projection experiments from climate models. Each element of the list should be named with the name of the subdirectory and should provide a numeric vector with the starting and ending years of the data within each of the two subdirectories (e.g., list("historical" = c(1990, 1999), "rcp85" = c(2060, 2079)) for a dataFolder with historical experiment data for 1990 to 1999 and RCP8.5 projections for 2060 to 2079).