Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
d1f4e76c9c909c6d6674862edb90d9f0
mooc-rr
Commits
cb291d71
Commit
cb291d71
authored
Apr 13, 2020
by
d1f4e76c9c909c6d6674862edb90d9f0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update date format and change humidity to risk of rain
parent
a54eab07
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
35 deletions
+37
-35
Entry_00.md
journal/Entry_00.md
+2
-2
Entry_01.md
journal/Entry_01.md
+1
-1
data.csv
module2/exo4/data.csv
+4
-3
exercice_R_fr.org
module2/exo4/exercice_R_fr.org
+30
-29
No files found.
journal/Entry_00.md
View file @
cb291d71
...
...
@@ -8,7 +8,7 @@
-
Matin: 5
-
Après-midi: 16
-
Soir: 11
-
Humidité
(%): 0
-
Risque de pluie
(%): 0
-
Vent (km/h): 10 (nord)
-
Indice de Qualité de l'Air (
[
source
](
https://aqicn.org/city/france/rhonealpes/isere/grenoble-grands-boulevards/
)
):
-
Grands Boulevards: 21
...
...
@@ -40,4 +40,4 @@ Module 1 terminé
-
Indexation numérique:
[
DocFetcher
](
http://docfetcher.sourceforge.net/fr/index.html
)
<!-- :cahier: :git: :markdown: :indexation: -->
\ No newline at end of file
<!-- :cahier: :git: :markdown: :indexation: -->
journal/Entry_01.md
View file @
cb291d71
...
...
@@ -10,7 +10,7 @@
-
Matin: 6
-
Après-midi: 26
-
Soir: 21
-
Humidité
(%): 0
-
Risque de pluie
(%): 0
-
Vent (km/h): 5 (direction variable)
-
Indice de Qualité de l'Air (
[
source
](
https://aqicn.org/city/france/rhonealpes/isere/grenoble-grands-boulevards/
)
)
-
Grands Boulevards: NaN
...
...
module2/exo4/data.csv
View file @
cb291d71
year;month;day;t_morning;t_afternoon;t_evening;humidity;wind_speed;IQA
2020;04;03;5;16;11;0;10;42
2020;04;10;6;26;21;0;5;51
date;t_morning;t_afternoon;t_evening;rain_risk;wind_speed;IQA
2020-04-03;5;16;11;0;10;42
2020-04-10;6;26;21;0;5;51
2020-04-13;9;24;17;0;10;25
module2/exo4/exercice_R_fr.org
View file @
cb291d71
...
...
@@ -18,77 +18,78 @@ Tout d'abord chargeons les données collectées durant ce mooc.
#+begin_src R :results output :session *R* :exports both
data <- read.csv("data.csv", sep=";", header=TRUE)
data$date <- as.Date(data$date, format="%Y-%m-%d")
summary(data)
#+end_src
#+RESULTS:
#+begin_example
year month day t_morning t_afternoon
Min. :2020
Min. :4 Min. : 3.00 Min. :5.00 Min. :16.
0
1st Qu.:2020
1st Qu.:4 1st Qu.: 4.75 1st Qu.:5.25 1st Qu.:18.5
Median :2020
Median :4 Median : 6.50 Median :5.50 Median :21.
0
Mean :2020
Mean :4 Mean : 6.50 Mean :5.50 Mean :21.
0
3rd Qu.:2020
3rd Qu.:4 3rd Qu.: 8.25 3rd Qu.:5.75 3rd Qu.:23.5
Max. :2020
Max. :4 Max. :10.00 Max. :6.00 Max. :26.
0
t_evening humidity wind_speed
IQA
Min. :
11.0 Min. :0 Min. : 5.00 Min. :42
.00
1st Qu.:
13.5 1st Qu.:0 1st Qu.: 6.25 1st Qu.:44.25
Median :1
6.0 Median :0 Median : 7.50 Median :46.5
0
Mean :
16.0 Mean :0 Mean : 7.50 Mean :46.50
3rd Qu.:1
8.5 3rd Qu.:0 3rd Qu.: 8.75 3rd Qu.:48.75
Max. :
21.0 Max. :0 Max. :10.
00 Max. :51.00
date t_morning t_afternoon t_evening rain_risk
Min. :2020
-04-03 Min. :5.000 Min. :16 Min. :11.00 Min. :
0
1st Qu.:2020
-04-06 1st Qu.:5.500 1st Qu.:20 1st Qu.:14.00 1st Qu.:0
Median :2020
-04-10 Median :6.000 Median :24 Median :17.00 Median :
0
Mean :2020
-04-08 Mean :6.667 Mean :22 Mean :16.33 Mean :
0
3rd Qu.:2020
-04-11 3rd Qu.:7.500 3rd Qu.:25 3rd Qu.:19.00 3rd Qu.:0
Max. :2020
-04-13 Max. :9.000 Max. :26 Max. :21.00 Max. :
0
wind_speed
IQA
Min. :
5.000 Min. :25
.00
1st Qu.:
7.500 1st Qu.:33.50
Median :1
0.000 Median :42.0
0
Mean :
8.333 Mean :39.33
3rd Qu.:1
0.000 3rd Qu.:46.50
Max. :
10.0
00 Max. :51.00
#+end_example
** Temporalité des collectes
Analysons le nombre de données collectées par
mois
Analysons le nombre de données collectées par
jour
#+begin_src R :results output graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session *R*
hist(data$
month
)
hist(data$
date, col="blue", breaks=30
)
#+end_src
#+RESULTS:
[[file:/tmp/babel-
bJ246X/figureDu3YQn
.png]]
[[file:/tmp/babel-
gVAqEf/figureP0VUCp
.png]]
** Évolutions des données
Analysons l'évolution des températures
#+begin_src R :results output graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session *R*
plot(data$t_morning ~ data$da
y, type="l", col="blue", ylim=c(0.0,40.0), xlab="days
", ylab="Temperature (°C)")
lines(data$t_afternoon ~ data$da
y
, col="red")
lines(data$t_evening ~ data$da
y
, col="green")
plot(data$t_morning ~ data$da
te, type="l", col="blue", ylim=c(0.0,40.0), xlab="date
", ylab="Temperature (°C)")
lines(data$t_afternoon ~ data$da
te
, col="red")
lines(data$t_evening ~ data$da
te
, col="green")
legend(1,40,legend=c("Morning","Afternoon","Evening"),col=c("blue","red","green"),lty=1)
#+end_src
#+RESULTS:
[[file:/tmp/babel-
bJ246X/figurerWKWF0
.png]]
[[file:/tmp/babel-
KTKdwl/figureHNgB2t
.png]]
D
e l'humidité
:
D
u risque d'averse
:
#+begin_src R :results output graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session *R*
plot(data$
humidity ~ data$day, type="l", col="blue", xlab="days", ylab="Humidity
(%)")
plot(data$
rain_risk ~ data$date, type="l", col="blue", xlab="date", ylab="Rain Risk
(%)")
#+end_src
#+RESULTS:
[[file:/tmp/babel-
bJ246X/figureYIQvch
.png]]
[[file:/tmp/babel-
KTKdwl/figurebDo7XU
.png]]
De la vitesse du vent:
#+begin_src R :results output graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session *R*
plot(data$wind ~ data$da
y, type="l", col="blue", xlab="days
", ylab="Wind Speed (km/h)")
plot(data$wind ~ data$da
te, type="l", col="blue", xlab="date
", ylab="Wind Speed (km/h)")
#+end_src
#+RESULTS:
[[file:/tmp/babel-
bJ246X/figureUv3yAT
.png]]
[[file:/tmp/babel-
6G788d/figureCLB4jQ
.png]]
De l'Indice de qualité de l'air:
#+begin_src R :results output graphics :file (org-babel-temp-file "figure" ".png") :exports both :width 600 :height 400 :session *R*
plot(data$IQA ~ data$da
y, type="l", col="blue", xlab="tim
e", ylab="Air Quality")
plot(data$IQA ~ data$da
te, type="l", col="blue", xlab="dat
e", ylab="Air Quality")
#+end_src
#+RESULTS:
[[file:/tmp/babel-
bJ246X/figureZp2Kv3
.png]]
[[file:/tmp/babel-
KTKdwl/figureDFXrlW
.png]]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment