Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sgbd_datamart
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
sgbd_datamart
Commits
7e929383
Commit
7e929383
authored
8 months ago
by
Daniel.Kalioudjoglou
Browse files
Options
Downloads
Patches
Plain Diff
mise a jour statut occupation des rp
parent
eda700e6
No related branches found
No related tags found
1 merge request
!43
Resolve "mise a jour donnees DK octobre 2024"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data-raw/chargement_statut_occupation_des_rp.R
+11
-11
11 additions, 11 deletions
data-raw/chargement_statut_occupation_des_rp.R
with
11 additions
and
11 deletions
data-raw/chargement_statut_occupation_des_rp.R
+
11
−
11
View file @
7e929383
# chargement_lgt_rp_insee
# chargement_lgt_rp_insee
# 202
0
--> https://www.insee.fr/fr/statistiques/
7631446
?sommaire=
7631713
# 202
1
--> https://www.insee.fr/fr/statistiques/
8202355
?sommaire=
8202874
# https://www.insee.fr/fr/statistiques/fichier/
7631446
/TD_PRINC2_202
0
_csv.zip
# https://www.insee.fr/fr/statistiques/fichier/
8202355
/TD_PRINC2_202
1
_csv.zip
# paru le 27/06/202
3
# paru le 27/06/202
4
# librairies ----------
# librairies ----------
...
@@ -15,22 +15,22 @@ library(dplyr)
...
@@ -15,22 +15,22 @@ library(dplyr)
rm
(
list
=
ls
())
rm
(
list
=
ls
())
# chargement data -------
# chargement data -------
download.file
(
url
=
"https://www.insee.fr/fr/statistiques/fichier/
7631446
/TD_PRINC2_202
0
_csv.zip"
,
download.file
(
url
=
"https://www.insee.fr/fr/statistiques/fichier/
8202355
/TD_PRINC2_202
1
_csv.zip"
,
destfile
=
"extdata/TD_PRINC2_202
0
_csv.zip"
)
destfile
=
"extdata/TD_PRINC2_202
1
_csv.zip"
)
unzip
(
"extdata/TD_PRINC2_202
0
_csv.zip"
,
overwrite
=
TRUE
,
exdir
=
"extdata"
)
unzip
(
"extdata/TD_PRINC2_202
1
_csv.zip"
,
overwrite
=
TRUE
,
exdir
=
"extdata"
)
# chargement data annees precedentes -------
# chargement data annees precedentes -------
load
(
"extdata/statut_occupation_des_rp.RData"
)
#
load("extdata/statut_occupation_des_rp.RData")
#
statut_occupation_des_rp <- importer_data(db = "datamart",
statut_occupation_des_rp
<-
importer_data
(
db
=
"datamart"
,
#
schema = "portrait_territoires",
schema
=
"portrait_territoires"
,
#
table = "source_statut_occupation_des_rp")
table
=
"source_statut_occupation_des_rp"
)
statut_occupation_des_rp_old
<-
statut_occupation_des_rp
statut_occupation_des_rp_old
<-
statut_occupation_des_rp
rm
(
statut_occupation_des_rp
)
rm
(
statut_occupation_des_rp
)
# chargement du nouveau millésime
# chargement du nouveau millésime
millesime
=
202
0
millesime
=
202
1
# path <- paste0("extdata/BTT_TD_PRINC2_",millesime,".txt") #pour les années jusque 2016
# path <- paste0("extdata/BTT_TD_PRINC2_",millesime,".txt") #pour les années jusque 2016
# path <- paste0("extdata/BTT_TD_PRINC2_",millesime,".csv") #pour les années 2017 à 2019
# path <- paste0("extdata/BTT_TD_PRINC2_",millesime,".csv") #pour les années 2017 à 2019
...
...
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