Skip to content

Commit

Permalink
patch fix to add_proportion()
Browse files Browse the repository at this point in the history
  • Loading branch information
Erickson authored and Erickson committed May 18, 2023
1 parent 6e418be commit e8ddae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ add_proportion <- function(data) {
dplyr::group_by(data, site_no, wy) %>%
dplyr::mutate(dplyr::across(dplyr::any_of(cols),
list(max_prop = ~.x/max(.x, na.rm = TRUE)
)))
))) %>%
dplyr::ungroup()
}

#' water year to months
Expand Down

0 comments on commit e8ddae6

Please sign in to comment.