An error occurred while loading the file. Please try again.
-
Grelot Frederic authored
0 errors
| 0 warnings | 0 notes map_so_ii refactoring - découpage des appels aux thèmes en fonctions map_theme_xxx - appel via un switch so_ii_population - correction du dataset (il manquait les années de type PSDC - correction du script so_ii_onrn - ajout de la bonne version (oubli...)9674ad22
# code to prepare `so_ii_catchment` dataset goes here
file_dir = geau::current_version(
"data-common/so-ii/topage",
pattern = "^[0-9-]+$"
)
so_ii_catchment = sf::st_read(file.path(file_dir, "bassin_versant.shp"))
names(so_ii_catchment) = c("id", "catchment_name", "degre", "geometry")
Encoding(so_ii_catchment[["catchment_name"]]) = "UTF-8"
so_ii_catchment[["degre"]] = factor(so_ii_catchment[["degre"]])
# updating datasets
actual = setwd("geau")
usethis::use_data(so_ii_catchment, internal = FALSE, overwrite = TRUE)
setwd(actual)