Skip to contents

given set of partitions with dates, create table by matching waves to partions and truncated them

Usage

partition_mhw_events_truncated(
  conn,
  mhw_table_name,
  partition_size_years = 3,
  start_year = 2040,
  end_year = 2069
)

Arguments

conn

dbi database connection, see mhw_connect()

mhw_table_name

name of main metrics table to use

partition_size_years

width of partions in years

start_year

year to start partitions default 2040

end_year

year to end partitions default 2069

Value

dplyr table with fields from mhw table, partition table (partition_name, partition_start_date, partition_end_date ), mhw_portion = which part of wave, mhw_portion_start = start date of truncated mhw, mhw_portion_end = end date of truncate wave, partition_dur = duration in days of truncated wave