From 1cda3d07f34870c43a9907ae1f4c5d692c129b3d Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Fri, 7 Jun 2024 14:16:14 -0700 Subject: [PATCH] Fix zero-filling on 'old' IPHC data --- data-raw/iphc-simple.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-raw/iphc-simple.R b/data-raw/iphc-simple.R index d227392..47a6c34 100644 --- a/data-raw/iphc-simple.R +++ b/data-raw/iphc-simple.R @@ -352,7 +352,7 @@ full_old <- select( old, -number_observed, -species_common_name) |> distinct() full_old <- purrr::map_dfr( - sort(unique(old$species_common_name)), + sort(unique(dat_pbs$species_common_name)), \(x) mutate(full_old, species_common_name = x) ) missing <- anti_join(full_old, old)