Commit 82e33e10 authored by Grelot Frederic's avatar Grelot Frederic :swimmer_tone5:
Browse files

geau Version 1.0.14.0

0 errors :heavy_check_mark: | 0 warnings :heavy_check_mark: | 0 notes :heavy_check_mark:

- so_ii_montpellier
	- ajout de district →  id des quartiers selon montpellier3m
Showing with 11 additions and 7 deletions
+11 -7
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",
......
......@@ -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}
......
......@@ -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
......
No preview for this file type
......@@ -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{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment