Skip to contents

Select a period in a time series

Usage

selectDriasPeriod(df, period, cfg = loadConfig())

Arguments

df

data.frame with a first column of POSIXt dates and numeric in the other columns

period

character, see details

cfg

a config object. Configuration to use. See loadConfig for details

Value

data.frame with a first column of POSIXt dates and numeric in the other columns with selected rows according to the chosen period

Details

Select time steps corresponding to one of the DRIAS 2020 periods: "ref" for reference (1976-2005), "near" for near future (2021-2050), "middle" for middle of the century (2041-2070), "end" for end of the century (2071-2100).