diff --git a/geau/DESCRIPTION b/geau/DESCRIPTION index 41acb3151d26699aa5415f7f7a8c295d719d93a1..108a33a4a6c1465d79f9b3274ac7490a894c454a 100644 --- a/geau/DESCRIPTION +++ b/geau/DESCRIPTION @@ -1,6 +1,6 @@ Package: geau Title: Utilities very useful to share within geau-inondation team -Version: 1.0.13.0 +Version: 1.0.14.0 Authors@R: c( person(given = "Frédéric", diff --git a/geau/R/data.r b/geau/R/data.r index 94ae97c47487e84bc83fa4a9277cef00d7fee496..c9e084641dc1e16b646c03636deca6f7ee4615da 100644 --- a/geau/R/data.r +++ b/geau/R/data.r @@ -118,8 +118,9 @@ #' #' @format sf data.frame 31 rows, 2 variables #' \describe{ -#' \item{district_group}{integer, how districts are grouped in Montpellier} -#' \item{district_name}{character,name of each district} +#' \item{district}{character, id of each district as given by montpellier3m} +#' \item{district_name}{character, name of each district} +#' \item{district_group}{character, how districts are grouped by montpellier3m} #' } #' #' @source \url{https://data.montpellier3m.fr/dataset/sous-quartiers-de-montpellier} diff --git a/geau/data-raw/so_ii_montpellier.R b/geau/data-raw/so_ii_montpellier.R index ca8bd2b79b160c97969b8d4c9ecc9695ee2a959c..e5a5db70f4e73c192a5f4583f4c2bcb9a8397c3c 100644 --- a/geau/data-raw/so_ii_montpellier.R +++ b/geau/data-raw/so_ii_montpellier.R @@ -7,9 +7,11 @@ so_ii_montpellier = sf::st_transform( so_ii_montpellier, crs = sf::st_crs(geau::so_ii_limit) ) -so_ii_montpellier = so_ii_montpellier[c("QUARTIER","LIBSQUART")] -names(so_ii_montpellier) = c("district_group", "district_name", "geometry") +so_ii_montpellier = so_ii_montpellier[c("SQUARTIER_", "LIBSQUART", "QUARTIER")] +names(so_ii_montpellier) = c("district", "district_name", "district_group", "geometry") Encoding(so_ii_montpellier[["district_name"]]) = "UTF-8" +so_ii_montpellier[["district"]] = formatC(so_ii_montpellier[["district"]], flag = "0", width = 2) +so_ii_montpellier[["district_group"]] = as.character(so_ii_montpellier[["district_group"]]) # updating datasets diff --git a/geau/data/so_ii_montpellier.rda b/geau/data/so_ii_montpellier.rda index d0db8889be52c9360b85d71d7982e62a14e6d50e..2e142cd10b2a569c0b64f1c2459e0d1ee51f1d3f 100644 Binary files a/geau/data/so_ii_montpellier.rda and b/geau/data/so_ii_montpellier.rda differ diff --git a/geau/man/so_ii_montpellier.Rd b/geau/man/so_ii_montpellier.Rd index cbb5000671d8a7e7825e9930c557e666ee7d5d7f..1d7aa744e603aa5be728366ea3b4a88a501f6dc7 100644 --- a/geau/man/so_ii_montpellier.Rd +++ b/geau/man/so_ii_montpellier.Rd @@ -7,8 +7,9 @@ \format{ sf data.frame 31 rows, 2 variables \describe{ -\item{district_group}{integer, how districts are grouped in Montpellier} -\item{district_name}{character,name of each district} +\item{district}{character, id of each district as given by montpellier3m} +\item{district_name}{character, name of each district} +\item{district_group}{character, how districts are grouped by montpellier3m} } } \source{