-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.json
More file actions
235 lines (235 loc) · 69.1 KB
/
Copy pathsearch.json
File metadata and controls
235 lines (235 loc) · 69.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
[
{
"objectID": "index.html",
"href": "index.html",
"title": "Dans quel étage R ?",
"section": "",
"text": "Préface\nCe livre est réalisé à partir de Quarto, système open-source de publication scientifique et technique. C’est aussi le lieu où je rendrai compte de fonctionnalités offertes par Github, service web d’hébergement de de gestion de développement de logiciels, notamment :\n\nLes Github Pages permettant d’héberger cet ouvrage\nLes Github Actions, fonctionnalités avancées offertes par la plateforme Github",
"crumbs": [
"Préface"
]
},
{
"objectID": "intro.html",
"href": "intro.html",
"title": "Introduction",
"section": "",
"text": "Je vais tenter de regrouper dans les pages qui vont suivre l’ensemble des informations que je juge pertinente concernant le domaine des statistiques associées aux données temporelles et géospatiales. \nJe le fais en français parce je juge que des lacunes sont flagrantes concernant les ouvrages de ce type utilisant cette langue. \nPetit bémol sur cette dernière remarque. Il serait en effet dangereux, dans le cadre d’un apprentissage, de vouloir traduire l’intégralité des termes techniques, d’origine anglaise pour la majorité. Ce serait même contre-productif, car cette nomenclature métier répond d’abord à des normes internationales. \nDernière remarque, cet ouvrage se constituera de manière cahotique et ne pourra jamais faire figure, dans un premier temps, de texte de référence. Il s’agit de prime abord plutôt d’un essai qui deviendra, au cours des mois qui vont suivre, utile et légitime, ou pas du tout. \nDonc aucune prétention à venir …",
"crumbs": [
"Introduction"
]
},
{
"objectID": "prerequis.html",
"href": "prerequis.html",
"title": "Prérequis",
"section": "",
"text": "Des prérequis logiciels sont nécessaires pour explorer les domaines identifiés dans ce chapitre :\n\nune version récente de R (R 4.3.2 ou une version plus récente).\n\nIl est recommandé d’expérimenter par soi-même les sujets abordés plus bas pour renforcer ses compétences géo-computationnelles.\nDans ce cadre, il est recommandé d’installer un envrironnement de développement (IDE) tel que RStudio ou VS Code pour écrire/exécuter/tester le code R.\nNous recommandons également l’usage des projets Rstudio, ou les espaces de travail VS Code ou tout autre système équivalent pour gérer vos projets de manière normalisée.",
"crumbs": [
"Prérequis"
]
},
{
"objectID": "structure/01_sf.html",
"href": "structure/01_sf.html",
"title": "\n1 Entrée en matière\n",
"section": "",
"text": "1.1 Un exemple pour illustrer\nNous allons nous intéresser au jeu de données world présent dans le package spData\nclass(world)\n\n[1] \"sf\" \"tbl_df\" \"tbl\" \"data.frame\"\n\ndim(world)\n\n[1] 177 11\n\nnames(world)\n\n [1] \"iso_a2\" \"name_long\" \"continent\" \"region_un\" \"subregion\" \"type\" \n [7] \"area_km2\" \"pop\" \"lifeExp\" \"gdpPercap\" \"geom\"\nIl s’agit bien d’un objet de type dataframe composé de 177 pays et 11 colonnes. Mais c’est aussi un objet de classe sf1\nSélectionnons un sous-ensemble de world que nous appellerons world_mini\nworld_mini <- world[1:2, 1:3]\nworld_mini\n\nSimple feature collection with 2 features and 3 fields\nGeometry type: MULTIPOLYGON\nDimension: XY\nBounding box: xmin: -180 ymin: -18.28799 xmax: 180 ymax: -0.95\nGeodetic CRS: WGS 84\n iso_a2 name_long continent geom\n1 FJ Fiji Oceania MULTIPOLYGON (((-180 -16.55...\n2 TZ Tanzania Africa MULTIPOLYGON (((33.90371 -0...\nComparé à un dataframe standard, un objet de type sf inclut des méta-données géographiques additionnelles :\nainsi que la présence d’une colonne geom (nommé parfois aussi geometry) comportant des éléments géométriques.\nCette colonne particulière est une colonne de classe sfc2.\nA leurs tours les objets de type sfc sont composés d’un ou plusieurs objets de type sfg3.",
"crumbs": [
"Premier contact",
"<span class='chapter-number'>1</span> <span class='chapter-title'>Entrée en matière</span>"
]
},
{
"objectID": "structure/01_sf.html#un-exemple-pour-illustrer",
"href": "structure/01_sf.html#un-exemple-pour-illustrer",
"title": "\n1 Entrée en matière\n",
"section": "",
"text": "Geometry type\nDimension\nBounding box\n\nGeodetic CRS, information lié au sytème de coordonnées de référence",
"crumbs": [
"Premier contact",
"<span class='chapter-number'>1</span> <span class='chapter-title'>Entrée en matière</span>"
]
},
{
"objectID": "structure/01_sf.html#une-introduction-aux-simple-features",
"href": "structure/01_sf.html#une-introduction-aux-simple-features",
"title": "\n1 Entrée en matière\n",
"section": "\n1.2 Une introduction aux “simple features”",
"text": "1.2 Une introduction aux “simple features”\nLes “simple features” (que l’on pourrait traduire par “fonctionnalités de base”) font partie d’une norme ouverte homologuée par l’Open Geospatial Consortium (OGC). \nC’est un modèle hiérarchique de données qui regroupe 18 types géométriques. Seulement 7 sont utilisés dans la grande majorité des recherches géographiques ; ces types géométriques de base sont intégralement implémentés par le package sf de R.\nIl est possible de retrouver l’ensemble des 18 types géométriques dans le manuel PostGIS.\nLe package sf\nLe paquet sf fournit les classes des vecteurs géographiques et une interface en ligne de commande permettant l’accès aux fonctionnalités de géo-computation offertes par les librairies de bas-niveau suivantes :\n\nGDAL, pour lire, écrire et manipuler un nombre important de formats de données géographiques,\nPROJ, une puissante librairie pour la transformations de systèmes de coordonnées,\nGEOS, un moteur de géométrie planaire destinés aux calculs de tampons (buffers) par exemple, aussi bien que des centroïdes pour des données projetées suivant un CRS (Coordinate Reference Systems) donné,\nS2, un moteur de géométrie sphérique écrit en C++ et développé par Google, via le package s2.\n\n\nlibrary(sf)\n\nLe message visible au chargement du package sf décline explicitement les liens avec ces librairies et montre aussi l’activation par défaut des fonctionnalités du paquet s2.\nLes fonctionnalités offertes par le package sf sont correctement documentées au travers de 7 vignettes visibles hors connexion comme suit :\n\nvignette(package = \"sf\") # pour voir quels vignettes sont disponibles\nvignette(\"sf1\") # une introduction au package\nvignette(\"sf2\") # lire, écrire, et convertir les \"simple features\"\nvignette(\"sf3\") # manipuler les géométries des \"simple features\"\nvignette(\"sf4\") # manipuler le \"simple features\"\nvignette(\"sf5\") # afficher les \"simple features\"\nvignette(\"sf6\") # points divers de la documentation\nvignette(\"sf7\") # opérations de géométrie sphérique\n\nLes types géométriques\nParmi les 18 types géométriques que gère le package sf nous allons nous focaliser sur les plus communément utilisés :\n\n\nPOINT et MULTIPOINT,\n\nLINESTRING et MULTILINESTRING,\n\nPOLYGON et MULTIPOLYGON,\nGEOMETRYCOLLECTION\n\nLes encodages standards utilisés pour enregistrer ces sfg4 sont :\n\nWKB (well-known binary), constitué de chaînes hexadécimales\nWKT (well-known text)\n\nSIG5 (ou GIS en anglais) et les bases de données spatiales utilisent l’encodage WKB pour transférer et stocker les objets géométriques. \n\nworld_asia <- world[world$continent == \"Asia\", ]\nasia <- st_union(world_asia)\nbbox <- st_bbox(world)\n\nasia\n\nGeometry set for 1 feature \nGeometry type: MULTIPOLYGON\nDimension: XY\nBounding box: xmin: 26.04335 ymin: -10.35999 xmax: 145.5431 ymax: 55.38525\nGeodetic CRS: WGS 84\n\n\nMULTIPOLYGON (((36.14976 35.82153, 35.90502 35....\n\nworld\n\nSimple feature collection with 177 features and 10 fields\nGeometry type: MULTIPOLYGON\nDimension: XY\nBounding box: xmin: -180 ymin: -89.9 xmax: 180 ymax: 83.64513\nGeodetic CRS: WGS 84\n iso_a2 name_long continent\n1 FJ Fiji Oceania\n2 TZ Tanzania Africa\n3 EH Western Sahara Africa\n4 CA Canada North America\n5 US United States North America\n6 KZ Kazakhstan Asia\n7 UZ Uzbekistan Asia\n8 PG Papua New Guinea Oceania\n9 ID Indonesia Asia\n10 AR Argentina South America\n11 CL Chile South America\n12 CD Democratic Republic of the Congo Africa\n13 SO Somalia Africa\n14 KE Kenya Africa\n15 SD Sudan Africa\n16 TD Chad Africa\n17 HT Haiti North America\n18 DO Dominican Republic North America\n19 RU Russian Federation Europe\n20 BS Bahamas North America\n21 FK Falkland Islands South America\n22 NO Norway Europe\n23 GL Greenland North America\n24 TF French Southern and Antarctic Lands Seven seas (open ocean)\n25 TL Timor-Leste Asia\n26 ZA South Africa Africa\n27 LS Lesotho Africa\n28 MX Mexico North America\n29 UY Uruguay South America\n30 BR Brazil South America\n31 BO Bolivia South America\n32 PE Peru South America\n33 CO Colombia South America\n34 PA Panama North America\n35 CR Costa Rica North America\n36 NI Nicaragua North America\n37 HN Honduras North America\n38 SV El Salvador North America\n39 GT Guatemala North America\n40 BZ Belize North America\n41 VE Venezuela South America\n42 GY Guyana South America\n43 SR Suriname South America\n44 FR France Europe\n45 EC Ecuador South America\n46 PR Puerto Rico North America\n47 JM Jamaica North America\n48 CU Cuba North America\n49 ZW Zimbabwe Africa\n50 BW Botswana Africa\n51 NA Namibia Africa\n52 SN Senegal Africa\n53 ML Mali Africa\n54 MR Mauritania Africa\n55 BJ Benin Africa\n56 NE Niger Africa\n57 NG Nigeria Africa\n58 CM Cameroon Africa\n59 TG Togo Africa\n60 GH Ghana Africa\n61 CI Côte d'Ivoire Africa\n62 GN Guinea Africa\n63 GW Guinea-Bissau Africa\n64 LR Liberia Africa\n65 SL Sierra Leone Africa\n66 BF Burkina Faso Africa\n67 CF Central African Republic Africa\n68 CG Republic of the Congo Africa\n69 GA Gabon Africa\n70 GQ Equatorial Guinea Africa\n71 ZM Zambia Africa\n72 MW Malawi Africa\n73 MZ Mozambique Africa\n74 SZ eSwatini Africa\n75 AO Angola Africa\n76 BI Burundi Africa\n77 IL Israel Asia\n78 LB Lebanon Asia\n79 MG Madagascar Africa\n80 PS Palestine Asia\n81 GM The Gambia Africa\n82 TN Tunisia Africa\n83 DZ Algeria Africa\n84 JO Jordan Asia\n85 AE United Arab Emirates Asia\n86 QA Qatar Asia\n87 KW Kuwait Asia\n88 IQ Iraq Asia\n89 OM Oman Asia\n90 VU Vanuatu Oceania\n91 KH Cambodia Asia\n92 TH Thailand Asia\n93 LA Lao PDR Asia\n94 MM Myanmar Asia\n95 VN Vietnam Asia\n96 KP Dem. Rep. Korea Asia\n97 KR Republic of Korea Asia\n98 MN Mongolia Asia\n99 IN India Asia\n100 BD Bangladesh Asia\n101 BT Bhutan Asia\n102 NP Nepal Asia\n103 PK Pakistan Asia\n104 AF Afghanistan Asia\n105 TJ Tajikistan Asia\n106 KG Kyrgyzstan Asia\n107 TM Turkmenistan Asia\n108 IR Iran Asia\n109 SY Syria Asia\n110 AM Armenia Asia\n111 SE Sweden Europe\n112 BY Belarus Europe\n113 UA Ukraine Europe\n114 PL Poland Europe\n115 AT Austria Europe\n116 HU Hungary Europe\n117 MD Moldova Europe\n118 RO Romania Europe\n119 LT Lithuania Europe\n120 LV Latvia Europe\n121 EE Estonia Europe\n122 DE Germany Europe\n123 BG Bulgaria Europe\n124 GR Greece Europe\n125 TR Turkey Asia\n126 AL Albania Europe\n127 HR Croatia Europe\n128 CH Switzerland Europe\n129 LU Luxembourg Europe\n130 BE Belgium Europe\n131 NL Netherlands Europe\n132 PT Portugal Europe\n133 ES Spain Europe\n134 IE Ireland Europe\n135 NC New Caledonia Oceania\n136 SB Solomon Islands Oceania\n137 NZ New Zealand Oceania\n138 AU Australia Oceania\n139 LK Sri Lanka Asia\n140 CN China Asia\n141 TW Taiwan Asia\n142 IT Italy Europe\n143 DK Denmark Europe\n144 GB United Kingdom Europe\n145 IS Iceland Europe\n146 AZ Azerbaijan Asia\n147 GE Georgia Asia\n148 PH Philippines Asia\n149 MY Malaysia Asia\n150 BN Brunei Darussalam Asia\n151 SI Slovenia Europe\n152 FI Finland Europe\n153 SK Slovakia Europe\n154 CZ Czech Republic Europe\n155 ER Eritrea Africa\n156 JP Japan Asia\n157 PY Paraguay South America\n158 YE Yemen Asia\n159 SA Saudi Arabia Asia\n160 AQ Antarctica Antarctica\n161 <NA> Northern Cyprus Asia\n162 CY Cyprus Asia\n163 MA Morocco Africa\n164 EG Egypt Africa\n165 LY Libya Africa\n166 ET Ethiopia Africa\n167 DJ Djibouti Africa\n168 <NA> Somaliland Africa\n169 UG Uganda Africa\n170 RW Rwanda Africa\n171 BA Bosnia and Herzegovina Europe\n172 MK Macedonia Europe\n173 RS Serbia Europe\n174 ME Montenegro Europe\n175 XK Kosovo Europe\n176 TT Trinidad and Tobago North America\n177 SS South Sudan Africa\n region_un subregion type\n1 Oceania Melanesia Sovereign country\n2 Africa Eastern Africa Sovereign country\n3 Africa Northern Africa Indeterminate\n4 Americas Northern America Sovereign country\n5 Americas Northern America Country\n6 Asia Central Asia Sovereign country\n7 Asia Central Asia Sovereign country\n8 Oceania Melanesia Sovereign country\n9 Asia South-Eastern Asia Sovereign country\n10 Americas South America Sovereign country\n11 Americas South America Sovereign country\n12 Africa Middle Africa Sovereign country\n13 Africa Eastern Africa Sovereign country\n14 Africa Eastern Africa Sovereign country\n15 Africa Northern Africa Sovereign country\n16 Africa Middle Africa Sovereign country\n17 Americas Caribbean Sovereign country\n18 Americas Caribbean Sovereign country\n19 Europe Eastern Europe Sovereign country\n20 Americas Caribbean Sovereign country\n21 Americas South America Dependency\n22 Europe Northern Europe Sovereign country\n23 Americas Northern America Country\n24 Seven seas (open ocean) Seven seas (open ocean) Dependency\n25 Asia South-Eastern Asia Sovereign country\n26 Africa Southern Africa Sovereign country\n27 Africa Southern Africa Sovereign country\n28 Americas Central America Sovereign country\n29 Americas South America Sovereign country\n30 Americas South America Sovereign country\n31 Americas South America Sovereign country\n32 Americas South America Sovereign country\n33 Americas South America Sovereign country\n34 Americas Central America Sovereign country\n35 Americas Central America Sovereign country\n36 Americas Central America Sovereign country\n37 Americas Central America Sovereign country\n38 Americas Central America Sovereign country\n39 Americas Central America Sovereign country\n40 Americas Central America Sovereign country\n41 Americas South America Sovereign country\n42 Americas South America Sovereign country\n43 Americas South America Sovereign country\n44 Europe Western Europe Country\n45 Americas South America Sovereign country\n46 Americas Caribbean Dependency\n47 Americas Caribbean Sovereign country\n48 Americas Caribbean Sovereign country\n49 Africa Eastern Africa Sovereign country\n50 Africa Southern Africa Sovereign country\n51 Africa Southern Africa Sovereign country\n52 Africa Western Africa Sovereign country\n53 Africa Western Africa Sovereign country\n54 Africa Western Africa Sovereign country\n55 Africa Western Africa Sovereign country\n56 Africa Western Africa Sovereign country\n57 Africa Western Africa Sovereign country\n58 Africa Middle Africa Sovereign country\n59 Africa Western Africa Sovereign country\n60 Africa Western Africa Sovereign country\n61 Africa Western Africa Sovereign country\n62 Africa Western Africa Sovereign country\n63 Africa Western Africa Sovereign country\n64 Africa Western Africa Sovereign country\n65 Africa Western Africa Sovereign country\n66 Africa Western Africa Sovereign country\n67 Africa Middle Africa Sovereign country\n68 Africa Middle Africa Sovereign country\n69 Africa Middle Africa Sovereign country\n70 Africa Middle Africa Sovereign country\n71 Africa Eastern Africa Sovereign country\n72 Africa Eastern Africa Sovereign country\n73 Africa Eastern Africa Sovereign country\n74 Africa Southern Africa Sovereign country\n75 Africa Middle Africa Sovereign country\n76 Africa Eastern Africa Sovereign country\n77 Asia Western Asia Country\n78 Asia Western Asia Sovereign country\n79 Africa Eastern Africa Sovereign country\n80 Asia Western Asia Disputed\n81 Africa Western Africa Sovereign country\n82 Africa Northern Africa Sovereign country\n83 Africa Northern Africa Sovereign country\n84 Asia Western Asia Sovereign country\n85 Asia Western Asia Sovereign country\n86 Asia Western Asia Sovereign country\n87 Asia Western Asia Sovereign country\n88 Asia Western Asia Sovereign country\n89 Asia Western Asia Sovereign country\n90 Oceania Melanesia Sovereign country\n91 Asia South-Eastern Asia Sovereign country\n92 Asia South-Eastern Asia Sovereign country\n93 Asia South-Eastern Asia Sovereign country\n94 Asia South-Eastern Asia Sovereign country\n95 Asia South-Eastern Asia Sovereign country\n96 Asia Eastern Asia Sovereign country\n97 Asia Eastern Asia Sovereign country\n98 Asia Eastern Asia Sovereign country\n99 Asia Southern Asia Sovereign country\n100 Asia Southern Asia Sovereign country\n101 Asia Southern Asia Sovereign country\n102 Asia Southern Asia Sovereign country\n103 Asia Southern Asia Sovereign country\n104 Asia Southern Asia Sovereign country\n105 Asia Central Asia Sovereign country\n106 Asia Central Asia Sovereign country\n107 Asia Central Asia Sovereign country\n108 Asia Southern Asia Sovereign country\n109 Asia Western Asia Sovereign country\n110 Asia Western Asia Sovereign country\n111 Europe Northern Europe Sovereign country\n112 Europe Eastern Europe Sovereign country\n113 Europe Eastern Europe Sovereign country\n114 Europe Eastern Europe Sovereign country\n115 Europe Western Europe Sovereign country\n116 Europe Eastern Europe Sovereign country\n117 Europe Eastern Europe Sovereign country\n118 Europe Eastern Europe Sovereign country\n119 Europe Northern Europe Sovereign country\n120 Europe Northern Europe Sovereign country\n121 Europe Northern Europe Sovereign country\n122 Europe Western Europe Sovereign country\n123 Europe Eastern Europe Sovereign country\n124 Europe Southern Europe Sovereign country\n125 Asia Western Asia Sovereign country\n126 Europe Southern Europe Sovereign country\n127 Europe Southern Europe Sovereign country\n128 Europe Western Europe Sovereign country\n129 Europe Western Europe Sovereign country\n130 Europe Western Europe Sovereign country\n131 Europe Western Europe Country\n132 Europe Southern Europe Sovereign country\n133 Europe Southern Europe Sovereign country\n134 Europe Northern Europe Sovereign country\n135 Oceania Melanesia Dependency\n136 Oceania Melanesia Sovereign country\n137 Oceania Australia and New Zealand Country\n138 Oceania Australia and New Zealand Country\n139 Asia Southern Asia Sovereign country\n140 Asia Eastern Asia Country\n141 Asia Eastern Asia Sovereign country\n142 Europe Southern Europe Sovereign country\n143 Europe Northern Europe Country\n144 Europe Northern Europe Country\n145 Europe Northern Europe Sovereign country\n146 Asia Western Asia Sovereign country\n147 Asia Western Asia Sovereign country\n148 Asia South-Eastern Asia Sovereign country\n149 Asia South-Eastern Asia Sovereign country\n150 Asia South-Eastern Asia Sovereign country\n151 Europe Southern Europe Sovereign country\n152 Europe Northern Europe Country\n153 Europe Eastern Europe Sovereign country\n154 Europe Eastern Europe Sovereign country\n155 Africa Eastern Africa Sovereign country\n156 Asia Eastern Asia Sovereign country\n157 Americas South America Sovereign country\n158 Asia Western Asia Sovereign country\n159 Asia Western Asia Sovereign country\n160 Antarctica Antarctica Indeterminate\n161 Asia Western Asia Sovereign country\n162 Asia Western Asia Sovereign country\n163 Africa Northern Africa Sovereign country\n164 Africa Northern Africa Sovereign country\n165 Africa Northern Africa Sovereign country\n166 Africa Eastern Africa Sovereign country\n167 Africa Eastern Africa Sovereign country\n168 Africa Eastern Africa Indeterminate\n169 Africa Eastern Africa Sovereign country\n170 Africa Eastern Africa Sovereign country\n171 Europe Southern Europe Sovereign country\n172 Europe Southern Europe Sovereign country\n173 Europe Southern Europe Sovereign country\n174 Europe Southern Europe Sovereign country\n175 Europe Southern Europe Sovereign country\n176 Americas Caribbean Sovereign country\n177 Africa Eastern Africa Sovereign country\n area_km2 pop lifeExp gdpPercap geom\n1 19289.971 885806 69.96000 8222.2538 MULTIPOLYGON (((-180 -16.55...\n2 932745.792 52234869 64.16300 2402.0994 MULTIPOLYGON (((33.90371 -0...\n3 96270.601 NA NA NA MULTIPOLYGON (((-8.66559 27...\n4 10036042.977 35535348 81.95305 43079.1425 MULTIPOLYGON (((-132.71 54....\n5 9510743.745 318622525 78.84146 51921.9846 MULTIPOLYGON (((-171.7317 6...\n6 2729810.513 17288285 71.62000 23587.3375 MULTIPOLYGON (((87.35997 49...\n7 461410.258 30757700 71.03900 5370.8658 MULTIPOLYGON (((55.96819 41...\n8 464520.072 7755785 65.23000 3709.0816 MULTIPOLYGON (((141.0002 -2...\n9 1819251.329 255131116 68.85600 10003.0890 MULTIPOLYGON (((104.37 -1.0...\n10 2784468.589 42981515 76.25200 18797.5479 MULTIPOLYGON (((-68.63401 -...\n11 814844.220 17613798 79.11700 22195.2744 MULTIPOLYGON (((-69.59042 -...\n12 2323492.477 73722860 58.78200 785.3473 MULTIPOLYGON (((29.34 -4.49...\n13 484332.793 13513125 55.46700 NA MULTIPOLYGON (((41.58513 -1...\n14 590836.914 46024250 66.24200 2753.2361 MULTIPOLYGON (((39.20222 -4...\n15 1850885.565 37737913 64.00200 4188.3348 MULTIPOLYGON (((23.88711 8....\n16 1271694.598 13569438 52.20400 2076.6500 MULTIPOLYGON (((23.83766 19...\n17 28540.546 10572466 62.75700 1652.8548 MULTIPOLYGON (((-71.71236 1...\n18 48157.874 10405844 73.48300 12663.0422 MULTIPOLYGON (((-71.7083 18...\n19 17018507.409 143819666 70.74366 25284.5862 MULTIPOLYGON (((180 70.8322...\n20 15584.791 382169 75.37900 28456.8165 MULTIPOLYGON (((-78.98 26.7...\n21 16363.799 NA NA NA MULTIPOLYGON (((-61.2 -51.8...\n22 397994.629 NA NA NA MULTIPOLYGON (((15.14282 79...\n23 2206644.440 56295 NA NA MULTIPOLYGON (((-46.76379 8...\n24 11602.572 NA NA NA MULTIPOLYGON (((68.935 -48....\n25 14714.931 1212814 68.28500 6262.9055 MULTIPOLYGON (((124.9687 -8...\n26 1216400.831 54539571 60.99300 12389.7147 MULTIPOLYGON (((16.34498 -2...\n27 27505.655 2145785 53.26800 2677.1981 MULTIPOLYGON (((28.97826 -2...\n28 1969480.307 124221600 76.75300 16622.5970 MULTIPOLYGON (((-117.1278 3...\n29 176853.636 3419546 77.19000 19827.5650 MULTIPOLYGON (((-57.62513 -...\n30 8508557.092 204213133 75.04200 15374.2615 MULTIPOLYGON (((-53.37366 -...\n31 1085269.596 10562159 68.35700 6324.8273 MULTIPOLYGON (((-69.52968 -...\n32 1309699.636 30973354 74.51800 11547.8342 MULTIPOLYGON (((-69.89364 -...\n33 1151882.926 47791911 74.02200 12715.9674 MULTIPOLYGON (((-66.87633 1...\n34 75265.449 3903986 77.61000 20017.9944 MULTIPOLYGON (((-77.35336 8...\n35 53832.136 4757575 79.44000 14372.4008 MULTIPOLYGON (((-82.5462 9....\n36 129540.212 6013997 74.88400 4784.8305 MULTIPOLYGON (((-83.65561 1...\n37 113789.775 8809216 73.18100 4231.3251 MULTIPOLYGON (((-83.14722 1...\n38 20893.340 6281189 73.01500 6890.7232 MULTIPOLYGON (((-89.35333 1...\n39 109459.049 15923559 72.86900 7147.4292 MULTIPOLYGON (((-92.22775 1...\n40 22045.451 351694 70.02700 7999.5737 MULTIPOLYGON (((-89.14308 1...\n41 908499.070 30738378 74.19600 16745.0220 MULTIPOLYGON (((-60.73357 5...\n42 209801.857 763393 66.42500 6906.0123 MULTIPOLYGON (((-56.53939 1...\n43 144268.723 547928 71.13800 15306.6924 MULTIPOLYGON (((-54.52475 2...\n44 644847.882 NA NA NA MULTIPOLYGON (((-51.6578 4....\n45 250747.110 15903112 75.87900 10901.4186 MULTIPOLYGON (((-75.37322 -...\n46 9224.663 3534874 79.39012 35066.0464 MULTIPOLYGON (((-66.28243 1...\n47 12460.587 2862087 75.68900 8051.2440 MULTIPOLYGON (((-77.5696 18...\n48 114866.218 11439767 79.41500 NA MULTIPOLYGON (((-82.26815 2...\n49 376328.489 15411675 59.36000 1925.1387 MULTIPOLYGON (((31.19141 -2...\n50 591912.017 2168573 64.78000 15914.6702 MULTIPOLYGON (((29.43219 -2...\n51 824886.561 2370992 62.98100 9617.3970 MULTIPOLYGON (((19.89577 -2...\n52 194390.439 14546111 66.37600 2218.5519 MULTIPOLYGON (((-16.71373 1...\n53 1235561.373 16962846 57.00700 1865.1606 MULTIPOLYGON (((-11.51394 1...\n54 1054107.194 4063920 62.90700 3655.3885 MULTIPOLYGON (((-17.06342 2...\n55 116998.713 10286712 60.37300 2001.0773 MULTIPOLYGON (((2.691702 6....\n56 1182269.648 19148219 59.22800 904.4567 MULTIPOLYGON (((14.8513 22....\n57 905071.739 176460502 52.54900 5671.9006 MULTIPOLYGON (((2.691702 6....\n58 460324.702 22239904 57.11100 3196.3615 MULTIPOLYGON (((14.49579 12...\n59 60966.962 7228915 59.60100 1315.3403 MULTIPOLYGON (((0.899563 10...\n60 243473.120 26962563 62.15400 3868.6009 MULTIPOLYGON (((0.02380252 ...\n61 329825.951 22531350 52.52000 3054.5349 MULTIPOLYGON (((-8.029944 1...\n62 239565.079 11805509 58.84600 1734.7367 MULTIPOLYGON (((-13.70048 1...\n63 36191.886 1725744 56.59800 1398.2548 MULTIPOLYGON (((-16.67745 1...\n64 98206.783 4390737 61.52700 804.7199 MULTIPOLYGON (((-8.439298 7...\n65 75980.331 7079162 50.95100 1692.1421 MULTIPOLYGON (((-13.24655 8...\n66 271593.672 17585977 59.45700 1582.3337 MULTIPOLYGON (((-5.404342 1...\n67 621860.349 4515392 50.62100 597.1352 MULTIPOLYGON (((27.37423 5....\n68 339681.855 4871101 63.53600 5538.0529 MULTIPOLYGON (((18.45307 3....\n69 269475.798 1875713 65.21100 16678.6381 MULTIPOLYGON (((11.27645 2....\n70 27120.575 1129424 57.18000 31542.5108 MULTIPOLYGON (((9.649158 2....\n71 751921.215 15620974 60.77500 3632.5038 MULTIPOLYGON (((30.74001 -8...\n72 111197.018 17068838 61.93200 1090.3672 MULTIPOLYGON (((32.75938 -9...\n73 810994.757 27212382 57.09900 1079.8239 MULTIPOLYGON (((34.55999 -1...\n74 18118.634 1295097 56.28700 7870.9707 MULTIPOLYGON (((32.07167 -2...\n75 1245463.748 26920466 60.85800 6257.1529 MULTIPOLYGON (((12.32243 -6...\n76 26238.948 9891790 56.68800 803.1728 MULTIPOLYGON (((30.46967 -2...\n77 22991.166 8215700 82.15366 31702.0835 MULTIPOLYGON (((35.71992 32...\n78 10099.003 5603279 79.23100 13831.3752 MULTIPOLYGON (((35.8211 33....\n79 589382.827 23589801 65.13300 1372.0210 MULTIPOLYGON (((49.54352 -1...\n80 5037.104 4294682 73.12600 4319.5283 MULTIPOLYGON (((35.39756 31...\n81 14031.284 1917852 60.70700 1550.2184 MULTIPOLYGON (((-16.71373 1...\n82 156237.322 11143908 75.33500 10767.0277 MULTIPOLYGON (((9.48214 30....\n83 2315916.658 39113313 75.64100 13483.3379 MULTIPOLYGON (((-8.6844 27....\n84 89207.137 8809306 74.03400 8622.1855 MULTIPOLYGON (((35.54567 32...\n85 79880.738 9070867 76.94800 63943.1858 MULTIPOLYGON (((51.57952 24...\n86 11327.855 2374419 77.88800 120860.0676 MULTIPOLYGON (((50.81011 24...\n87 16652.120 3782450 74.45800 70832.3684 MULTIPOLYGON (((47.97452 29...\n88 436965.034 35006080 69.45800 14838.3829 MULTIPOLYGON (((39.19547 32...\n89 309302.034 3960925 76.57800 40365.2733 MULTIPOLYGON (((55.20834 22...\n90 7490.040 258850 71.70900 2892.3416 MULTIPOLYGON (((166.7932 -1...\n91 182235.978 15270790 68.25100 3124.3193 MULTIPOLYGON (((102.5849 12...\n92 510125.570 68416772 74.89500 14857.2029 MULTIPOLYGON (((105.2188 14...\n93 229080.422 6576397 65.97500 5436.4826 MULTIPOLYGON (((107.3827 14...\n94 679573.994 51924182 66.28500 4770.0121 MULTIPOLYGON (((100.116 20....\n95 335990.802 92544915 75.85500 5264.8281 MULTIPOLYGON (((104.3343 10...\n96 125679.216 25116363 71.17900 NA MULTIPOLYGON (((130.64 42.3...\n97 99044.367 50746659 81.72195 33425.6896 MULTIPOLYGON (((126.1748 37...\n98 1544322.150 2923896 68.84700 11348.6473 MULTIPOLYGON (((87.75126 49...\n99 3142892.098 1293859294 68.02100 5385.1418 MULTIPOLYGON (((97.32711 28...\n100 133782.141 159405279 71.80300 2973.0416 MULTIPOLYGON (((92.67272 22...\n101 39377.402 776448 69.43000 7366.4241 MULTIPOLYGON (((91.69666 27...\n102 150706.871 28323241 69.51100 2266.1843 MULTIPOLYGON (((88.12044 27...\n103 874119.998 185546257 66.13900 4576.2270 MULTIPOLYGON (((77.83745 35...\n104 652270.070 32758020 62.89500 1838.9602 MULTIPOLYGON (((66.51861 37...\n105 138111.759 8362745 70.69000 2546.5005 MULTIPOLYGON (((67.83 37.14...\n106 195874.658 5835500 70.40244 3181.6422 MULTIPOLYGON (((70.96231 42...\n107 480809.522 5466241 67.55200 14332.3658 MULTIPOLYGON (((52.50246 41...\n108 1617559.040 78411092 75.46600 16924.2007 MULTIPOLYGON (((48.56797 29...\n109 185004.125 19203090 69.81700 NA MULTIPOLYGON (((35.71992 32...\n110 28656.601 2906220 74.25500 7971.1179 MULTIPOLYGON (((46.50572 38...\n111 450581.582 9696110 82.25366 44167.6319 MULTIPOLYGON (((11.02737 58...\n112 208969.830 9474511 72.97073 17944.2098 MULTIPOLYGON (((28.17671 56...\n113 572548.984 45271947 71.18659 8243.4735 MULTIPOLYGON (((35.01266 45...\n114 310402.333 38011735 77.60244 24347.0737 MULTIPOLYGON (((23.48413 53...\n115 85064.895 8546356 81.49024 44320.5020 MULTIPOLYGON (((16.97967 48...\n116 92476.460 9866468 75.76341 24161.4255 MULTIPOLYGON (((22.08561 48...\n117 32320.392 3556397 71.25800 4762.7809 MULTIPOLYGON (((26.61934 48...\n118 238356.297 19908979 74.96098 19677.5203 MULTIPOLYGON (((28.23355 45...\n119 63831.091 2932367 74.51707 26258.2101 MULTIPOLYGON (((26.49433 55...\n120 63923.533 1993782 74.12439 22172.2535 MULTIPOLYGON (((27.28818 57...\n121 44678.197 1314545 77.03415 27113.6859 MULTIPOLYGON (((27.98113 59...\n122 357430.341 80982500 81.09024 43560.6192 MULTIPOLYGON (((14.11969 53...\n123 110216.875 7223938 74.46585 16302.3206 MULTIPOLYGON (((22.65715 44...\n124 131964.647 10892413 81.38537 24081.6305 MULTIPOLYGON (((22.95238 41...\n125 798849.164 77030628 75.23900 22401.8804 MULTIPOLYGON (((26.11704 41...\n126 29694.800 2889104 77.96300 10701.1208 MULTIPOLYGON (((21.02004 40...\n127 57530.852 4238389 77.47805 20334.4465 MULTIPOLYGON (((16.56481 46...\n128 46185.251 8188649 83.19756 57218.0279 MULTIPOLYGON (((9.594226 47...\n129 2416.870 556319 82.22927 93655.3342 MULTIPOLYGON (((6.043073 50...\n130 30126.038 11209057 81.28780 41360.3956 MULTIPOLYGON (((6.156658 50...\n131 40024.104 16865008 81.70732 45668.4415 MULTIPOLYGON (((6.90514 53....\n132 93408.594 10401062 81.12195 26023.6978 MULTIPOLYGON (((-9.034818 4...\n133 502306.468 46480882 83.22927 31195.4052 MULTIPOLYGON (((-7.453726 3...\n134 58457.513 4657740 81.34878 48898.3287 MULTIPOLYGON (((-6.197885 5...\n135 23219.012 268050 77.25287 NA MULTIPOLYGON (((165.78 -21....\n136 24728.114 575504 70.11300 2139.5607 MULTIPOLYGON (((157.14 -7.0...\n137 277627.605 4509700 81.40488 34455.3312 MULTIPOLYGON (((169.6678 -4...\n138 7687613.843 23504138 82.30000 43547.1975 MULTIPOLYGON (((126.1487 -3...\n139 65370.390 20771000 74.90600 10650.3902 MULTIPOLYGON (((81.78796 7....\n140 9409830.493 1364270000 75.93200 12758.6478 MULTIPOLYGON (((80.25999 42...\n141 34345.701 NA NA NA MULTIPOLYGON (((121.7778 24...\n142 315104.851 60789140 83.09024 33945.8439 MULTIPOLYGON (((8.709991 40...\n143 42759.928 5643475 80.70000 45057.0742 MULTIPOLYGON (((9.921906 54...\n144 249986.395 64613160 81.30488 38251.7925 MULTIPOLYGON (((-6.197885 5...\n145 107735.721 327386 82.86098 41701.1373 MULTIPOLYGON (((-14.5087 66...\n146 91113.254 9535079 71.80000 16715.1055 MULTIPOLYGON (((46.14362 38...\n147 69048.161 3727000 72.95100 8749.1562 MULTIPOLYGON (((39.95501 43...\n148 292256.939 100102249 68.81300 6585.8959 MULTIPOLYGON (((118.5046 9....\n149 338226.487 30228017 74.97600 24194.6339 MULTIPOLYGON (((100.0858 6....\n150 10700.334 411704 76.91700 76089.2866 MULTIPOLYGON (((115.4507 5....\n151 19118.123 2061980 81.07805 28417.6564 MULTIPOLYGON (((13.80648 46...\n152 341242.339 5461512 81.18049 39017.5372 MULTIPOLYGON (((28.59193 69...\n153 47068.082 5418649 76.81220 27285.2847 MULTIPOLYGON (((22.55814 49...\n154 81207.603 10525347 78.82439 29119.6166 MULTIPOLYGON (((15.017 51.1...\n155 119319.585 NA 64.17400 NA MULTIPOLYGON (((36.42951 14...\n156 404619.933 127276000 83.58780 37337.3174 MULTIPOLYGON (((132.3712 33...\n157 401335.916 6552584 72.91300 8501.5435 MULTIPOLYGON (((-58.16639 -...\n158 455915.007 26246327 64.52300 3766.8053 MULTIPOLYGON (((52.00001 19...\n159 1920324.146 30776722 74.23400 49958.4433 MULTIPOLYGON (((34.95604 29...\n160 12335956.076 NA NA NA MULTIPOLYGON (((-180 -89.9,...\n161 3786.365 NA NA NA MULTIPOLYGON (((32.73178 35...\n162 6207.006 1152309 80.17300 29786.3657 MULTIPOLYGON (((32.73178 35...\n163 591718.989 34318082 75.30900 7078.8815 MULTIPOLYGON (((-2.169914 3...\n164 996311.623 91812566 71.12000 9879.7994 MULTIPOLYGON (((36.86623 22...\n165 1633720.717 6204108 71.65900 16371.9022 MULTIPOLYGON (((25 22, 25 2...\n166 1132393.167 97366774 64.53500 1424.5270 MULTIPOLYGON (((47.78942 8....\n167 21880.251 912164 62.00600 NA MULTIPOLYGON (((42.35156 12...\n168 167349.613 NA NA NA MULTIPOLYGON (((48.9482 11....\n169 245768.479 38833338 59.22400 1637.2751 MULTIPOLYGON (((33.90371 -0...\n170 23365.411 11345357 66.18800 1629.8689 MULTIPOLYGON (((30.4191 -1....\n171 50605.075 3566002 76.56100 10516.7864 MULTIPOLYGON (((18.56 42.65...\n172 25062.255 2077495 75.38400 12298.4902 MULTIPOLYGON (((22.38053 42...\n173 76388.605 7130576 75.33659 13112.9090 MULTIPOLYGON (((18.82982 45...\n174 13443.678 621810 76.71200 14796.6354 MULTIPOLYGON (((20.0707 42....\n175 11230.262 1821800 71.09756 8698.2916 MULTIPOLYGON (((20.59025 41...\n176 7737.810 1354493 70.42600 31181.8212 MULTIPOLYGON (((-61.68 10.7...\n177 624909.099 11530971 55.81700 1935.8794 MULTIPOLYGON (((30.83385 3....\n\n\n\nplot(\n asia, \n xlim = c(bbox[\"xmin\"], bbox[\"xmax\"]), \n ylim = c(bbox[\"ymin\"],bbox[\"ymax\"]),\n col = \"red\",\n graticule = TRUE,\n axes = TRUE,\n main = \"Les pays d'Asie\"\n)\n\nplot(\n st_geometry(world), \n add = TRUE\n)\n\n\n\nL’ Asie dans le Monde. La zone asiatique colorée en rouge a été affichée avec les limites de cadre (bounding box) de la carte du Monde. L’ensemble des pays du Monde avec leurs frontières respectives ont été ensuite affichés au-dessus de la zone déjà tracée.\n\n\n\n\n\n\n\n\n\nNote\n\n\n\nLes mots sont ici malaisés à formuler pour des éléments graphiques simples (bounding box) c’est ce qui fait ici la difficulté de la transmission correcte des informations pour une personne novice dans le domaine.",
"crumbs": [
"Premier contact",
"<span class='chapter-number'>1</span> <span class='chapter-title'>Entrée en matière</span>"
]
},
{
"objectID": "structure/01_sf.html#footnotes",
"href": "structure/01_sf.html#footnotes",
"title": "\n1 Entrée en matière\n",
"section": "",
"text": "simple feature↩︎\nsimple feature column↩︎\nsimple feature geometry↩︎\nsimple feature geometries↩︎\nsystème d’information géographique↩︎",
"crumbs": [
"Premier contact",
"<span class='chapter-number'>1</span> <span class='chapter-title'>Entrée en matière</span>"
]
},
{
"objectID": "CRAN_packages.html",
"href": "CRAN_packages.html",
"title": "\n2 Dépendances des packages R CRAN\n",
"section": "",
"text": "2.1 Chargement des librairies\nlibrary(cranly)",
"crumbs": [
"Tips",
"<span class='chapter-number'>2</span> <span class='chapter-title'>Dépendances des packages R CRAN</span>"
]
},
{
"objectID": "CRAN_packages.html#récupérer-les-données-du-cran",
"href": "CRAN_packages.html#récupérer-les-données-du-cran",
"title": "\n2 Dépendances des packages R CRAN\n",
"section": "\n2.2 Récupérer les données du CRAN",
"text": "2.2 Récupérer les données du CRAN\nL’outil de référence pour collecter les informations à jour des paquets est la commande CRAN_package_db()du package tools\n\npackage_db_file <- \"data/package_db.RDS\"\nif (file.exists(package_db_file)) {\n package_db <- readRDS(package_db_file)\n} else {\n package_db <- tools::CRAN_package_db()\n saveRDS(package_db, file = package_db_file)\n}\n\nhead(package_db[,1:4])\n\n Package Version Priority Depends\n1 A3 1.0.0 <NA> R (>= 2.15.0), xtable, pbapply\n2 AalenJohansen 1.0 <NA> <NA>\n3 AATtools 0.0.2 <NA> R (>= 3.6.0)\n4 ABACUS 1.0.0 <NA> R (>= 3.1.0)\n5 abasequence 0.1.0 <NA> <NA>\n6 abbreviate 0.1 <NA> <NA>\n\nnrow(package_db)\n\n[1] 20741",
"crumbs": [
"Tips",
"<span class='chapter-number'>2</span> <span class='chapter-title'>Dépendances des packages R CRAN</span>"
]
},
{
"objectID": "CRAN_packages.html#construction-dun-arbre-des-dépendances-avec-cranly",
"href": "CRAN_packages.html#construction-dun-arbre-des-dépendances-avec-cranly",
"title": "\n2 Dépendances des packages R CRAN\n",
"section": "\n2.3 Construction d’un arbre des dépendances avec cranly1\n",
"text": "2.3 Construction d’un arbre des dépendances avec cranly1\n\n\nlibrary(cranly)\n\nif (file.exists(package_db_file)) {\n package_db <- readRDS(package_db_file)\n cran_db <- clean_CRAN_db(package_db)\n} else {\n cran_db <- clean_CRAN_db()\n}\n\npackage_network <- build_network(cran_db)\n\npackage <- \"visNetwork\"\n\ncompute_dependence_tree(package_network, package)\n\n package generation\n1 visNetwork 0\n2 htmlwidgets -1\n3 htmltools -1\n4 jsonlite -1\n5 magrittr -1\n6 utils -1\n7 methods -1\n8 grDevices -1\n9 stats -1\n10 base64enc -2\n11 digest -2\n12 fastmap -2\n13 grDevices -2\n14 rlang -2\n15 utils -2\n16 htmltools -2\n17 jsonlite -2\n18 knitr -2\n19 rmarkdown -2\n20 yaml -2\n21 methods -2\n22 utils -3\n23 base64enc -3\n24 digest -3\n25 fastmap -3\n26 grDevices -3\n27 rlang -3\n28 evaluate -3\n29 highr -3\n30 methods -3\n31 tools -3\n32 xfun -3\n33 yaml -3\n34 bslib -3\n35 fontawesome -3\n36 htmltools -3\n37 jquerylib -3\n38 jsonlite -3\n39 knitr -3\n40 tinytex -3\n41 base64enc -4\n42 cachem -4\n43 fastmap -4\n44 grDevices -4\n45 htmltools -4\n46 jquerylib -4\n47 jsonlite -4\n48 lifecycle -4\n49 memoise -4\n50 mime -4\n51 rlang -4\n52 sass -4\n53 utils -4\n54 methods -4\n55 xfun -4\n56 digest -4\n57 evaluate -4\n58 highr -4\n59 tools -4\n60 yaml -4\n61 stats -4\n62 rlang -5\n63 fastmap -5\n64 utils -5\n65 methods -5\n66 xfun -5\n67 base64enc -5\n68 digest -5\n69 grDevices -5\n70 htmltools -5\n71 cli -5\n72 glue -5\n73 cachem -5\n74 tools -5\n75 fs -5\n76 R6 -5\n77 rappdirs -5\n78 stats -5\n\ntibble_tree <- build_dependence_tree(package_network, package)\nplot(tibble_tree)",
"crumbs": [
"Tips",
"<span class='chapter-number'>2</span> <span class='chapter-title'>Dépendances des packages R CRAN</span>"
]
},
{
"objectID": "CRAN_packages.html#footnotes",
"href": "CRAN_packages.html#footnotes",
"title": "\n2 Dépendances des packages R CRAN\n",
"section": "",
"text": "R package dependence trees↩︎",
"crumbs": [
"Tips",
"<span class='chapter-number'>2</span> <span class='chapter-title'>Dépendances des packages R CRAN</span>"
]
},
{
"objectID": "Marvel.html",
"href": "Marvel.html",
"title": "\n3 Marvel Universe Network\n",
"section": "",
"text": "3.1 Récupération des données depuis Wikipedia\nurl1 <- \"https://en.wikipedia.org/w/index.php?title=Marvel_Cinematic_Universe:_Phase_One&oldid=1096778874\"\nurl2 <- \"https://en.wikipedia.org/w/index.php?title=Marvel_Cinematic_Universe:_Phase_Two&oldid=1097878759\"\nurl3 <- \"https://en.wikipedia.org/w/index.php?title=Marvel_Cinematic_Universe:_Phase_Three&oldid=1096776335\"\n\nurls <- c(url1, url2, url3)\n\nget_table <- function(wiki_url) {\n \n tib <- wiki_url |> \n read_html() |> \n html_elements(\".wikitable\") |> \n html_table(na.strings = \"\") |> \n pluck(3) |> \n row_to_names(row_number = 1) |> \n pivot_longer(\n cols = -c(\"Character\"), \n names_to = \"Movie\", \n values_to = \"Actor\", \n values_drop_na = TRUE) |> \n mutate(\n Actor = str_remove_all(Actor, \"\\\\[|\\\\]\"),\n Actor = str_remove_all(Actor, \"[:digit:]\"),\n Actor = str_remove(Actor, \"[C|V]$\"),\n Actor = str_replace_all(Actor, \"([a-z])([A-Z])\", \"\\\\1 \\\\2\"),\n Character = str_remove_all(Character, '\\\\\\\"'),\n Character = str_replace_all(Character, \"([a-z])([A-Z])\", \"\\\\1 \\\\2\"),\n Character = str_remove(Character, \"OS$\"),\n Character = str_trim(Character),\n Movie = str_replace_all(Movie, \"([a-z]|:)([A-Z])\", \"\\\\1 \\\\2\"),\n Movie = str_trim(Movie),\n Movie = recode(Movie, \"Thor\" = \"Thor 1\", \"Iron Man\" = \"Iron Man 1\")\n ) |> \n select(-Actor)\n \n return(tib)\n\n}\n\ndf_marvel <- map(urls, get_table) |> \n list_rbind() # map_dfr(urls, get_table) is deprecated",
"crumbs": [
"Tips",
"<span class='chapter-number'>3</span> <span class='chapter-title'>Marvel Universe Network</span>"
]
},
{
"objectID": "Marvel.html#analyse-de-données-exploratoire",
"href": "Marvel.html#analyse-de-données-exploratoire",
"title": "\n3 Marvel Universe Network\n",
"section": "\n3.2 Analyse de données exploratoire",
"text": "3.2 Analyse de données exploratoire\n\n# Personnage apparaissant le plus souvent (en terme de films)\n\ndf_marvel |>\n count(Character, sort = TRUE)\n\n# A tibble: 59 × 2\n Character n\n <chr> <int>\n 1 Nick Fury 11\n 2 Steve Rogers Captain America 11\n 3 Tony Stark Iron Man 10\n 4 Bruce Banner Hulk 8\n 5 Natasha Romanoff Black Widow 8\n 6 Thor 8\n 7 James Rhodey Rhodes War Machine / Iron Patriot 6\n 8 Sam Wilson Falcon 6\n 9 Virginia Pepper Potts 6\n10 Loki 5\n# ℹ 49 more rows\n\n# Films faisant intervenir le plus de personnages\n\ndf_marvel |>\n count(Movie, sort = TRUE)\n\n# A tibble: 23 × 2\n Movie n\n <chr> <int>\n 1 Avengers: Endgame 44\n 2 Avengers: Infinity War 32\n 3 Captain America: Civil War 16\n 4 Avengers: Age of Ultron 15\n 5 Marvel's The Avengers 11\n 6 Captain America: The Winter Soldier 9\n 7 Spider-Man: Far From Home 9\n 8 Spider-Man: Homecoming 9\n 9 Guardians of the Galaxy Vol. 2 8\n10 Black Panther 7\n# ℹ 13 more rows",
"crumbs": [
"Tips",
"<span class='chapter-number'>3</span> <span class='chapter-title'>Marvel Universe Network</span>"
]
},
{
"objectID": "Marvel.html#création-dun-graphe",
"href": "Marvel.html#création-dun-graphe",
"title": "\n3 Marvel Universe Network\n",
"section": "\n3.3 Création d’un graphe",
"text": "3.3 Création d’un graphe\n\n#|label: graph\nnetwork <- df_marvel |> \n as_tbl_graph()\n\nclass(network)\n\n[1] \"tbl_graph\" \"igraph\" \n\n# Mesure de centralité, par exemple le degré associé à un noeud\n\nnetwork |> \n activate(nodes) |> # on considère la table des noeuds ou \"vertices\"\n mutate(degree = centrality_degree()) |> \n as_tibble() |>\n arrange(desc(degree))\n\n# A tibble: 82 × 2\n name degree\n <chr> <dbl>\n 1 Nick Fury 11\n 2 Steve Rogers Captain America 11\n 3 Tony Stark Iron Man 10\n 4 Bruce Banner Hulk 8\n 5 Natasha Romanoff Black Widow 8\n 6 Thor 8\n 7 Virginia Pepper Potts 6\n 8 James Rhodey Rhodes War Machine / Iron Patriot 6\n 9 Sam Wilson Falcon 6\n10 Loki 5\n# ℹ 72 more rows",
"crumbs": [
"Tips",
"<span class='chapter-number'>3</span> <span class='chapter-title'>Marvel Universe Network</span>"
]
},
{
"objectID": "Marvel.html#interactivité-avec-le-paquet-visnetwork",
"href": "Marvel.html#interactivité-avec-le-paquet-visnetwork",
"title": "\n3 Marvel Universe Network\n",
"section": "\n3.4 Interactivité avec le paquet visNetwork\n",
"text": "3.4 Interactivité avec le paquet visNetwork\n\nPour aller plus loin dans les options ne pas hésiter à visiter visNetwork, an R package for interactive network visualization\n\nvis_network <- network |> \n mutate(group = if_else(\n condition = name %in% unique(df_marvel$Character),\n true = \"Character\",\n false = \"Movie\"\n )) |> \n toVisNetworkData()\n\nvisNetwork(\n nodes = vis_network$nodes,\n edges = vis_network$edges,\n width = \"100%\",\n height = \"600px\",\n main = \"L'univers filmographique Marvel\") |> \n visLayout(randomSeed = 1000) |> \n addFontAwesome() |> \n visGroups(\n groupname = \"Movie\",\n shape = \"icon\",\n icon = list(code = \"f008\", color = \"darkblue\")\n ) |> \n visGroups(\n groupname = \"Character\",\n shape = \"icon\",\n icon = list(code = \"f007\", color = \"red\")\n ) |> \n visOptions(\n highlightNearest = list(enabled = TRUE, hover = TRUE),\n nodesIdSelection = TRUE\n ) |> \n visInteraction(navigationButtons = TRUE)",
"crumbs": [
"Tips",
"<span class='chapter-number'>3</span> <span class='chapter-title'>Marvel Universe Network</span>"
]
},
{
"objectID": "structure/99_errements.html",
"href": "structure/99_errements.html",
"title": "4 Visions",
"section": "",
"text": "Re-mot-deler le monde\nA la frontière de nos mots nous voulons dicter l’univers. Mais que n’en disent sur cette Terre, tous ceux qu’on laisse pour sots ?\nUn renard affublé d’un corbeau, sortis d’une élégante fable, ne sauraient-ils être encore plus beaux, à la lumière de leur corde sensible ?\nLes êtres à nos yeux invisibles ne sont-ils point, à fleur de peau, des témoins beaucoup plus attachés, à leur terrier que l’on toise de haut ?\nCorbeau, renard, ou piètre vermisseau, pâles images réduites à ces lignes, il se trame dans vos modestes clairières bien plus que ce simple univers.\nNos lisières lexicales occultent l’inentendu et nous confondent en lettres convenues. Alors brisons, de nos rêves, toutes les valeurs, et révélons ensemble cet autre ailleurs.",
"crumbs": [
"Digressions",
"<span class='chapter-number'>4</span> <span class='chapter-title'>Visions</span>"
]
},
{
"objectID": "summary.html#footnotes",
"href": "summary.html#footnotes",
"title": "\n5 Summary\n",
"section": "",
"text": "Ce texte est invisible ?↩︎",
"crumbs": [
"<span class='chapter-number'>5</span> <span class='chapter-title'>Summary</span>"
]
},
{
"objectID": "links.html",
"href": "links.html",
"title": "6 links",
"section": "",
"text": "6.1 Liens Internet",
"crumbs": [
"<span class='chapter-number'>6</span> <span class='chapter-title'>links</span>"
]
},
{
"objectID": "links.html#liens-internet",
"href": "links.html#liens-internet",
"title": "6 links",
"section": "",
"text": "0 - Bibliographie R\n\nR Markdown books\n\n\n\n1 - Learn in the Cloud\n\nCogniterra (bioinformatics with Python)\nRosalind (bioinformatics with Python)\nHackerRank (SQL, Python, …)\nLeetCode (SQL, Python, …)\nexecute program (SQL, Python, …)\n\nPythonAnywhere\nPostgreSQL for Everybody\nPostgreSQL Exercises\nPosit Cloud\nPosit Videos\nCRYPTOHACK\n\n\nArtificial Intelligence\n\nrTutor.ai (AI pour R et Python)\nChatlize.ai (AI pour R et Python)\nChatGPT\n\n\n\nDATA Science\n\n1 - Introduction to Data Science (Rafael A Irizarry)\n2 - Advanced Data Science (Rafael A Irizarry)\nTelling Stories with Data\nQUANTIFYING HEALTH\nR for Data Science (2nd edition)\nR for Data Science (1st edition)\nR for Data Science Exercice solutions (1st edition)\nPratiquer R sur le portail SNDS\nHow to make wonderful-looking tables (library gt)\nPopulation Health Data Science with R\n\n\n\nEpidémiologie\n\nR pour l’épidémiologie appliquée et la santé publique\n\n\n\nDATA Visualisation\n\nYet Again: R + Data Science\nFormations R aux MTES & MCTRCT\nFrom Data to Viz\nMaps from Milos\nrspatialdata is a collection of data sources and tutorials on visualising spatial data using R\nSpatial Statistics for Data Science (Paulamoraga)\nGeocomputation with R (1st edition)\nGeocomputation with R (second edition)\nMap Projection Explorer\nSpatial Data Science with R (blog and articles)\nSpatial Data Science With Applications in R\nSpatial Data Science with R and “terra”\nLes données spatiales avec R (15/01/2021)\nMaking Maps with R (31/07/2020)\nCartographie et SIG avec R (ThinkR)\nCompute geometric measurements (package sf)\nSimple Features for R\npostgis - Data Management\nData Visualization\nFundamentals of Data Visualization\nCartographie interactive avec leaflet (ThinkR)\n\n\n\nggplot2\n\nggplot2: Elegant Graphics for Data Analysis (3rd edition)\nSolutions to ggplot2: Elegant Graphics for Data Analysis (3rd edition)\nggplot2 Aesthetic specifications\nggplot2 Function reference\n127 registered extensions available to explore\nTutorial on how to make beautiful plots with R\nThe R Graph Galley\nData Visualization with R\nBe Awesome in ggplot2: A Practical Guide to be Highly Effective - R software and data visualization\nggplot2 tidyverse\nEasy way to mix multiple graphs on the same page\nAligning plots (library cowplot)\nLaying out multiple plots on a page\nFacets (library ggh4x)\nggrepel examples\n132 registered extensions available to explore\nrasterVis\n\n\n\nSéries temporelles\n\nSéries temporelles avec Python (1/4) (STATOSCOP)\nSéries temporelles avec Python (2/4) (STATOSCOP)\nSéries temporelles avec Python (3/4) (STATOSCOP)\nSéries temporelles avec Python (4/4) (STATOSCOP)\nForecasting: Principles and Practice (3rd ed)\nJ’en suis à la leçon 2.9 White noise\nAnalyse de séries temporelles avec R\nSéries temporelles sous R\nIntroduction à la manipulation de série temporelle avec R\nTime Series Analysis (06/11/2021)\nSeasonal plot (library feasts)\n\n\n\nNetwork\nStatic and dynamic network visualization with R\n\n\nShiny\n\nMastering shiny (1st edition)\nMastering shiny solutions (1st edition)\nMastering shiny solutions (1st edition) other version\nAide-mémoire Shiny (ThinkR)\nShiny Gallery\nShiny for Python\nEngineering Production-Grade Shiny Apps (golem)\n\n\n\nQuarto\n\nCHRISTIAN GEBHARD Datavisualization Design\nCreating websites with Quarto and Github\nBuilding all the data things with R and web technologies\nggplot2 workshop (Thomas Lin Pedersen)\nFree themes for Bootstrap\nHTML Colors\nGoogle Fonts\nCreating your personal website using Quarto\n\n\n\nR and QUARTO COMMUNITY\nR-bloggers\nPosit Community\n\nDevelopment\n\nGIT\nLearning Git Branching\nHappy Git and GitHub for the useR\nEt merde, Git!?!\nGITHUB\nGithub Actions for R\nHow To Use GitHub Action Secrets In Your Python Script In 3 Steps\nGitHub Secrets from Python and R\nHow to Use GitHub to Update a Database Automatically\nHow to Use GitHub Actions with R to Run Code Automatically\nWorkflow syntax for GitHub Actions\nA weekly data project in R from the R4DS online learning community\nUNIX\nData Science at the Command Line\nR\n\n\nMastering Software Development in R\nR Internals\nAdvanced R 2e\nAdvanced R Solutions (2nd edition)\nAdvanced R 1st\nAdvanced R Solutions (1st edition)\nR Packages (2nd edition)\nWriting R Extensions\nOutils de développement et de performance (Création de packages)\nHow to write your own R package and publish it on CRAN\nHow to develop good R packages (for open science)\nR-hub\nTravailler avec R\nMastering Software Development in R\n\n\nDjango\n\n\nGenerating a database-driven dropdown menu in Django\n\n\n\nBio-informatique\n\nMaster bioinformatique Rennes\nSFBI (société française de bioinformatique)\nIFB (Institut français de bioinformatique)\nPhylogénie moléculaire - formation avancée",
"crumbs": [
"<span class='chapter-number'>6</span> <span class='chapter-title'>links</span>"
]
},
{
"objectID": "links.html#open-data",
"href": "links.html#open-data",
"title": "6 links",
"section": "6.2 OPEN DATA",
"text": "6.2 OPEN DATA\n\nEnedis Open Data\ndata.gouv\nopendatasoft",
"crumbs": [
"<span class='chapter-number'>6</span> <span class='chapter-title'>links</span>"
]
},
{
"objectID": "links.html#donnees-climatiques",
"href": "links.html#donnees-climatiques",
"title": "6 links",
"section": "6.3 DONNEES CLIMATIQUES",
"text": "6.3 DONNEES CLIMATIQUES\n\nclimate.gov (climat)\nNOAA Data\nCopernicus Climate reanalysis\nCarbon bombs under the spotlight\nClimate Lab Book",
"crumbs": [
"<span class='chapter-number'>6</span> <span class='chapter-title'>links</span>"
]
},
{
"objectID": "links.html#a-classer",
"href": "links.html#a-classer",
"title": "6 links",
"section": "6.4 A classer",
"text": "6.4 A classer\n\n1) R\n\nR Guide des bonnes pratiques\nCode Snippets in the RStudio IDE\nR Markdown – Les petits trucs qui changent la vie\nTravail collaboratif avec R\nWhat They Forgot to Teach You About R\nR for Graduate Students\nOpération sur les fichiers et les dossiers\nR Programming for Research\nHow to delete rows in R\nimport Excel in R\n\n\n\n2) tidyverse\nDifferences between the base R and magrittr pipes\nThe tidyverse style guide\n\n\nbenchmarking\n\nProfvis — Interactive Visualizations for Profiling R Code\n\n\n\nColor\n\n\n\n\nDjango\n\nSite biblio alchiba (pythonanywhere.com)\n\n\n\nGestion de l’eau\n\nSIDEN SIAN (Tome 1) - Cour des comptes\nLes per et polyfluoroalkylées (PFAS) ARS Auvergne-Rhône-Alpes\nPFAS Contamination in the U.S.",
"crumbs": [
"<span class='chapter-number'>6</span> <span class='chapter-title'>links</span>"
]
}
]