From 0773d88461334b319fa329c00dcd9ff3c7cf7c37 Mon Sep 17 00:00:00 2001 From: Joe Thorley Date: Mon, 8 Jul 2024 11:46:52 -0700 Subject: [PATCH] update readme --- DESCRIPTION | 1 + README.Rmd | 9 +++++++++ README.md | 16 ++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/DESCRIPTION b/DESCRIPTION index d2de8db..afd3322 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -38,6 +38,7 @@ Imports: Suggests: ggplot2, knitr, + latex2exp, rmarkdown, scales, testthat (>= 3.0.0) diff --git a/README.Rmd b/README.Rmd index 973414d..8b0de36 100644 --- a/README.Rmd +++ b/README.Rmd @@ -69,6 +69,15 @@ gss(gsdd::temperature_data) gss_plot(gsdd::temperature_data) ``` +### ATUs + +`date_atus` calculates the date on which a specified number of accumulated thermal units are exceeded. + +```{r} +date_atus(gsdd::temperature_data, start_date = as.Date("1972-06-15"), atus = 600) +``` + + ## Contribution Please report any [issues](https://github.com/poissonconsulting/teckfish/issues). diff --git a/README.md b/README.md index f374eaa..8d297ef 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ + [![Lifecycle: @@ -75,6 +76,21 @@ gss_plot(gsdd::temperature_data) ![](man/figures/README-unnamed-chunk-5-1.png) +### ATUs + +`date_atus` calculates the date on which a specified number of +accumulated thermal units are exceeded. + +``` r +date_atus(gsdd::temperature_data, start_date = as.Date("1972-06-15"), atus = 600) +#> # A tibble: 2 × 4 +#> # Groups: year [2] +#> year start_date end_date atus +#> +#> 1 2018 1971-06-15 NA NA +#> 2 2019 1971-06-15 1971-07-09 613. +``` + ## Contribution Please report any