Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dataviz_gitlabr
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
dataviz_gitlabr
Commits
daf13950
Commit
daf13950
authored
4 months ago
by
LE DURAND Matteo
Browse files
Options
Downloads
Patches
Plain Diff
ajout de la correspondance des nom avec l'annuaire et le filtre de l'annuaire
parent
111ef869
No related branches found
No related tags found
2 merge requests
!28
Ajout de l'onglet indicateur et plus
,
!18
MAJ de main de la branche dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
global.R
+14
-5
14 additions, 5 deletions
global.R
with
14 additions
and
5 deletions
global.R
+
14
−
5
View file @
daf13950
...
@@ -20,20 +20,28 @@ library(bizdays)
...
@@ -20,20 +20,28 @@ library(bizdays)
library
(
shinyWidgets
)
library
(
shinyWidgets
)
library
(
textclean
)
library
(
textclean
)
library
(
stringi
)
library
(
stringi
)
library
(
readr
)
# chargement des données (résultat du script "dev/script_chargement_rdata.R")
# chargement des données (résultat du script "dev/script_chargement_rdata.R")
load
(
"github.RData"
)
load
(
"github.RData"
)
load
(
"gitlab_forge.RData"
)
load
(
"gitlab_forge.RData"
)
load
(
"gitlab.RData"
)
load
(
"gitlab.RData"
)
load
(
"date_MAJ.RData"
)
load
(
"date_MAJ.RData"
)
email_table
<-
read_csv
(
"annuaire/email_total.csv"
)
annuaire
<-
read_csv
(
"annuaire/annuaire.csv"
)
annuaire
$
Messagerie
<-
tolower
(
annuaire
$
Messagerie
)
annuaire
<-
annuaire
%>%
rename
(
email
=
Messagerie
)
annuaire
<-
annuaire
%>%
mutate
(
auteur
=
paste
(
Prénom
,
Nom
))
%>%
select
(
email
,
auteur
)
all_data
<-
bind_rows
(
all_data_gitlab
,
all_data_forge
,
combined_data
)
all_data
<-
bind_rows
(
all_data_gitlab
,
all_data_forge
,
combined_data
)
all_data
$
updated_at
<-
as.POSIXct
(
all_data
$
updated_at
,
format
=
(
"%Y-%m-%dT%H:%M:%S"
))
all_data
$
updated_at
<-
as.POSIXct
(
all_data
$
updated_at
,
format
=
(
"%Y-%m-%dT%H:%M:%S"
))
all_data
<-
all_data
%>%
mutate
(
message
=
paste0
(
type
,
sep
=
" : "
,
message
))
all_data
<-
all_data
%>%
mutate
(
message
=
paste0
(
type
,
sep
=
" : "
,
message
))
# transformation author ----
all_data
$
author
<-
all_data
$
author
%>%
all_data
<-
all_data
%>%
left_join
(
email_table
)
# nettoyage de certaine adresse mail invalide
tolower
()
%>%
all_data
<-
all_data
%>%
left_join
(
annuaire
)
# ajout de auteur des membre du SCTE via l'annuaire
stri_trans_general
(
"Latin-ASCII"
)
%>%
str_replace_all
(
"[^a-z ]"
,
""
)
# transformation re_code ----
# transformation re_code ----
traduction
<-
c
(
traduction
<-
c
(
...
@@ -50,6 +58,7 @@ traduction <- c(
...
@@ -50,6 +58,7 @@ traduction <- c(
"Milestone"
=
"Gestion de projet"
"Milestone"
=
"Gestion de projet"
)
)
all_data
<-
all_data
%>%
dplyr
::
mutate
(
re_code
=
dplyr
::
recode
(
type
,
!!!
traduction
))
all_data
<-
all_data
%>%
dplyr
::
mutate
(
re_code
=
dplyr
::
recode
(
type
,
!!!
traduction
))
all_data
<-
all_data
%>%
dplyr
::
rename
(
project_name
=
name
)
#transformation message
#transformation message
all_data
$
message
<-
all_data
$
message
%>%
tolower
()
all_data
$
message
<-
all_data
$
message
%>%
tolower
()
...
...
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