Skip to content

Commit

Permalink
new commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSpinola committed Dec 11, 2023
1 parent faed0fd commit 1b8e23a
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions data-raw/gadm/gadm.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ library(rmapshaper)

ca_geodata <- gadm(c("CRI", "PAN", "GTM", "SLV", "HND", "NIC", "BLZ"), level = 0, path = "data-raw/gadm")

ca_geodata_to_sf <- st_as_sf(ca_geodata) |>
ca_outline <- st_as_sf(ca_geodata) |>
dplyr::select(COUNTRY)

st_write(ca_geodata_to_sf, "data-raw/gadm/ca_gadm41.gpkg", delete_layer = TRUE)

ca_outline <- st_read("data-raw/gadm/ca_gadm41.gpkg")

usethis::use_data(ca_outline, overwrite = TRUE)

# outline of Central America only continent
Expand Down
Binary file added data-raw/gadm/gadm/gadm41_BLZ_0_pk.rds
Binary file not shown.
Binary file added data-raw/gadm/gadm/gadm41_CRI_0_pk.rds
Binary file not shown.
Binary file added data-raw/gadm/gadm/gadm41_GTM_0_pk.rds
Binary file not shown.
Binary file added data-raw/gadm/gadm/gadm41_HND_0_pk.rds
Binary file not shown.
Binary file added data-raw/gadm/gadm/gadm41_NIC_0_pk.rds
Binary file not shown.
Binary file added data-raw/gadm/gadm/gadm41_PAN_0_pk.rds
Binary file not shown.
Binary file added data-raw/gadm/gadm/gadm41_SLV_0_pk.rds
Binary file not shown.

0 comments on commit 1b8e23a

Please sign in to comment.