Skip to content

Commit

Permalink
Remove NAs
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Aug 28, 2024
1 parent db7214f commit 9f90ada
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api.R
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ function(restriction = "NULL", taxa = "NULL", source = "NULL", lang = "en") {
group_by(Type, Date) |>
summarise(Records = sum(n_records), .groups = "drop_last") |>
arrange(Date) |>
na.omit() |>
mutate(Records = cumsum(Records))

if (nrow(ans) < 1L) {
Expand Down

0 comments on commit 9f90ada

Please sign in to comment.