Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
joethorley committed Jul 8, 2024
1 parent 86b6deb commit 0773d88
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Imports:
Suggests:
ggplot2,
knitr,
latex2exp,
rmarkdown,
scales,
testthat (>= 3.0.0)
Expand Down
9 changes: 9 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

<!-- badges: start -->

[![Lifecycle:
Expand Down Expand Up @@ -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
#> <int> <date> <date> <dbl>
#> 1 2018 1971-06-15 NA NA
#> 2 2019 1971-06-15 1971-07-09 613.
```

## Contribution

Please report any
Expand Down

0 comments on commit 0773d88

Please sign in to comment.