Skip to content

Commit

Permalink
drop msgs argument to date_atus()
Browse files Browse the repository at this point in the history
  • Loading branch information
joethorley committed Jul 8, 2024
1 parent c5f9d57 commit 1246652
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions R/atu-index.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.atu_index <- function(
x,
date,
atus,
msgs = TRUE) {
atus) {

x <- pmax(x, 0)
x <- cumsum(x)
Expand Down
6 changes: 2 additions & 4 deletions R/date-atus.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
date_atus <- function(
x,
atus = 600,
start_date = as.Date("1972-03-01"),
msgs = TRUE) {
start_date = as.Date("1972-03-01")) {

check_data(x, list(date = dttr2::dtt_date("1970-01-01"), temperature = c(1, NA)))
chk_date(start_date)
Expand Down Expand Up @@ -51,8 +50,7 @@ date_atus <- function(
dplyr::group_modify(~.atu_index(
.x$temperature,
.x$date,
atus = atus,
msgs = msgs), .keep = TRUE) |>
atus = atus), .keep = TRUE) |>
dplyr::mutate(end_date = dttr2::dtt_dayte(end_date, start_date),
start_date = start_dayte) |>
dplyr::select(c("year", "start_date", "end_date", "atus"))
Expand Down
4 changes: 1 addition & 3 deletions man/date_atus.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1246652

Please sign in to comment.