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

geau Version 1.0.12.0

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

- so_ii_montpellier dataset
	- quartier de Montpellier
Showing with 58 additions and 1 deletion
+58 -1
Package: geau Package: geau
Title: Utilities very useful to share within geau-inondation team Title: Utilities very useful to share within geau-inondation team
Version: 1.0.11.2 Version: 1.0.12.0
Authors@R: Authors@R:
c( c(
person(given = "Frédéric", person(given = "Frédéric",
......
...@@ -111,6 +111,20 @@ ...@@ -111,6 +111,20 @@
#' @format sfc_POLYGON of length 1 #' @format sfc_POLYGON of length 1
"so_ii_limit" "so_ii_limit"
#' Spatial definition of districts of Montpellier city
#'
#' A dataset containing the spatial definition of all districts
#' for Montpellier.
#'
#' @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}
#' }
#'
#' @source \url{https://data.montpellier3m.fr/dataset/sous-quartiers-de-montpellier}
"so_ii_montpellier"
#' Local collectivities included in so-ii #' Local collectivities included in so-ii
#' #'
#' A dataset containing the INSEE code of all local collectivities #' A dataset containing the INSEE code of all local collectivities
......
# code to prepare `so_ii_onrn` dataset goes here
so_ii_montpellier = sf::st_read(
geau::current_version("data-common/so-ii/montpellier", "shp")
)
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")
Encoding(so_ii_montpellier[["district_name"]]) = "UTF-8"
# updating datasets
# actual = setwd(file.path(system.file(package = "geau"), ".."))
actual = setwd("geau")
usethis::use_data(so_ii_montpellier, internal = FALSE, overwrite = TRUE)
setwd(actual)
File added
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.r
\docType{data}
\name{so_ii_montpellier}
\alias{so_ii_montpellier}
\title{Spatial definition of districts of Montpellier city}
\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}
}
}
\source{
\url{https://data.montpellier3m.fr/dataset/sous-quartiers-de-montpellier}
}
\usage{
so_ii_montpellier
}
\description{
A dataset containing the spatial definition of all districts
for Montpellier.
}
\keyword{datasets}
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