• Grelot Frederic's avatar
    geau Version 1.0.8.0 · 9674ad22
    Grelot Frederic authored
    0 errors :heavy_check_mark: | 0 warnings :heavy_check_mark: | 0 notes :heavy_check_mark:
    
    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
so_ii_catchment.R 544 bytes
# 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)