Skip to contents

sql code to calc avg duration grouped by decade. Decade start/end dates come from a table 'decades' that must exist in the database

Usage

avg_duration_by_decade_sql(mhw_table, use_end_date = FALSE)

Arguments

mhw_table

character name of scenario table to use

use_end_date

boolean TRUE: use waves ending in the decade; FALSE: use waves starting in the deacde

Value

character sql code to run