heatwaveR: Detect Heatwaves and Cold-Spells

The different methods for defining, detecting, and categorising the extreme events known as heatwaves or cold-spells, as first proposed in Hobday et al. (2016) <doi:10.1016/j.pocean.2015.12.014> and Hobday et al. (2018) <https://www.jstor.org/stable/26542662>. The functions in this package work on both air and water temperature data. These detection algorithms may be used on non-temperature data as well.

Version: 0.5.4
Depends: R (≥ 3.0.2)
Imports: data.table, fasttime, ggplot2, Rcpp, RcppRoll, stats, utils
LinkingTo: Rcpp (≥ 0.12.16), RcppArmadillo
Suggests: covr, doParallel, dplyr, ggpubr, knitr, lubridate, ncdf4, plyr, rerddap, rmarkdown, stringr, testthat, tibble, tidync, tidyr
Published: 2025-04-10
DOI: 10.32614/CRAN.package.heatwaveR
Author: Robert W. Schlegel ORCID iD [aut, cre, ctb], Albertus J. Smit ORCID iD [aut, ctb]
Maintainer: Robert W. Schlegel <robwschlegel at gmail.com>
BugReports: https://github.com/robwschlegel/heatwaveR/issues
License: MIT + file LICENSE
URL: https://robwschlegel.github.io/heatwaveR/index.html, https://github.com/robwschlegel/heatwaveR
NeedsCompilation: yes
Citation: heatwaveR citation info
Materials: README NEWS
CRAN checks: heatwaveR results

Documentation:

Reference manual: heatwaveR.pdf
Vignettes: Download, Prepare, and Analyse NOAA OISST Data: Alternative Methods (source, R code)
Trend and Breakpoint analyses in MHW metrics (source, R code)
Saving MHW Results to NetCDF (source, R code)
Downloading and Preparing NOAA OISST Data (source, R code)
Alternative Thresholds (source, R code)
Basic Detection and Visualisation of Events (source, R code)
Calculating and Visualising Event Categories (source, R code)
Calculating and Visualising Exceedances (source, R code)
Detecting Events in Gridded Data (source, R code)
heatwaveR internal workflow (source, R code)

Downloads:

Package source: heatwaveR_0.5.4.tar.gz
Windows binaries: r-devel: heatwaveR_0.4.6.zip, r-release: heatwaveR_0.5.4.zip, r-oldrel: heatwaveR_0.4.6.zip
macOS binaries: r-devel (arm64): heatwaveR_0.5.4.tgz, r-release (arm64): heatwaveR_0.5.4.tgz, r-oldrel (arm64): heatwaveR_0.5.4.tgz, r-devel (x86_64): heatwaveR_0.5.4.tgz, r-release (x86_64): heatwaveR_0.5.4.tgz, r-oldrel (x86_64): heatwaveR_0.5.4.tgz
Old sources: heatwaveR archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=heatwaveR to link to this page.