From 36a7486ccd9e31871698f97e146bd642f7a32ac2 Mon Sep 17 00:00:00 2001 From: ManuelSpinola Date: Mon, 11 Dec 2023 17:31:11 -0600 Subject: [PATCH] new commit 3 --- data-raw/gadm/gadm.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data-raw/gadm/gadm.R b/data-raw/gadm/gadm.R index beb777a..a67cff9 100644 --- a/data-raw/gadm/gadm.R +++ b/data-raw/gadm/gadm.R @@ -18,14 +18,16 @@ usethis::use_data(ca_outline, overwrite = TRUE) # outline of Central America only continent -ca_outline_c <- ms_filter_islands(ca_outline, min_area = 1000000000) +ca_outline_c <- ms_filter_islands(ca_outline, min_area = 1000000000) |> + dplyr::select(COUNTRY) usethis::use_data(ca_outline_c, overwrite = TRUE) # Central America dissolved ca_outline_d <- ca_outline_c |> - st_union() + st_union() |> + st_as_sf() usethis::use_data(ca_outline_d, overwrite = TRUE)