Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
zonages-habitat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DREAL Pays de la Loire
Centre de Services de la Donnée
zonages-habitat
Commits
8c4853b8
Commit
8c4853b8
authored
7 months ago
by
Juliette Engelaere-Lefebvre
Browse files
Options
Downloads
Patches
Plain Diff
Intégration PLH 2024 - closes
#51
parent
31657448
No related branches found
No related tags found
No related merge requests found
Pipeline
#469520
passed
7 months ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PLH/integration_PLH.Rmd
+3
-13
3 additions, 13 deletions
PLH/integration_PLH.Rmd
PLH/integration_PLH.html
+520
-200
520 additions, 200 deletions
PLH/integration_PLH.html
with
523 additions
and
213 deletions
PLH/integration_PLH.Rmd
+
3
−
13
View file @
8c4853b8
...
...
@@ -8,7 +8,7 @@ output:
toc: yes
toc_depth: '2'
params:
annee: "202
3
"
annee: "202
4
"
sgbd: TRUE
---
...
...
@@ -26,9 +26,6 @@ library(COGiter)
library(COGugaison)
library(readODS)
library(datalibaba)
library(RPostgres)
library(rpostgis)
library(DBI)
library(sf)
# devtools::install_github("pachevalier/tricky")
library(tricky)
...
...
@@ -132,15 +129,8 @@ On réunit au préalable ces informations.
```{r mise a jour attributs epci, message=FALSE, warning=FALSE, results = FALSE}
# siège des EPCI
telech <- tempfile()
download.file(url = paste0("https://www.banatic.interieur.gouv.fr/V5/fichiers-en-telechargement/telecharger.php?zone=N&date=01/01/",
params$annee, "&format=E"),
destfile = paste0(telech, "siege_epci.csv"))
siege_epci <- readr::read_tsv(paste0(telech, "siege_epci.csv"), locale = locale("fr", encoding = "latin1")) %>%
set_standard_names() %>%
select(EPCI = `n°_siren`, departement_siege) %>%
separate(departement_siege, into = c("dep", NA), sep = " - ") %>%
distinct %>%
siege_epci <- COGiter::epci %>%
select(EPCI, dep = DEP_SIEGE_EPCI) %>%
mutate(across(c(dep, EPCI), as.character))
...
...
This diff is collapsed.
Click to expand it.
PLH/integration_PLH.html
+
520
−
200
View file @
8c4853b8
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment