Skip to contents

Compares the occurrence rates of rogue waves (Hmax/Hs > 2) and extreme gusts (gust/wind > 2.6).

Usage

compare_rogue_wave_gust(data)

Arguments

data

Data frame with wave_height, hmax, wind_speed, gust columns

Value

Data frame comparing occurrence rates

Examples

data <- data.frame(
  wave_height = c(3, 4, 5, 2.5),
  hmax = c(5, 9, 8, 4),
  wind_speed = c(10, 15, 20, 8),
  gust = c(15, 40, 30, 12)
)
compare_rogue_wave_gust(data)
#>   phenomenon      definition n_events n_eligible occurrence_pct
#> 1 Rogue Wave   Hmax/Hs > 2.0        1          4             25
#> 2 Rogue Gust Gust/Wind > 2.6        1          4             25