From 9f90adac77cb957b8568414a13201beef6105d60 Mon Sep 17 00:00:00 2001 From: wkmor1 Date: Wed, 28 Aug 2024 14:50:04 +0300 Subject: [PATCH] Remove NAs --- api.R | 1 + 1 file changed, 1 insertion(+) diff --git a/api.R b/api.R index d8d497f..3d28a76 100644 --- a/api.R +++ b/api.R @@ -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) {