Learn R Programming

futureheatwaves (version 1.0.3)

formDates: Create date vector for requested time period

Description

This function creates a vector that includes all the dates spanning the requested date range.

Usage

formDates(times, bounds)

Arguments

times
A dataframe containing the time data for one ensemble member's projections. Each row in this dataframe corresponds to the row with the same row number in the climate projection dataframe.
bounds
A numeric vector with the desired time boundaries of the ensemble, in terms of indices referring to the first and last row in the climate projection data frame within the requested date range.

Value

A vector of the desired time boundaries, formatted as year-month-day.