-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatatable-sd-usage-fr.po
More file actions
622 lines (562 loc) · 29.9 KB
/
Copy pathdatatable-sd-usage-fr.po
File metadata and controls
622 lines (562 loc) · 29.9 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
#
msgid ""
msgstr ""
"Project-Id-Version: cluster 2.1.6\n"
"POT-Creation-Date: 2021-08-19 20:27\n"
"PO-Revision-Date: 2024-08-01 11:57+0200\n"
"Last-Translator: Christian Wiat <w9204-rs@yahoo.com>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 2.4.2\n"
#: e:/datatable-sd-usage-fr.Rmd:block 1 (header)
msgid ""
"title: \"Utiliser .SD pour l'analyse de données\"\n"
"date: \"`r Sys.Date()`\"\n"
"output:\n"
" markdown::html_format:\n"
"options:\n"
"toc: true\n"
"number_sections: true\n"
"meta:\n"
"css: [default, css/toc.css]\n"
"vignette: >\n"
" %\\VignetteIndexEntry{Using .SD for Data Analysis}\n"
" %\\VignetteEngine{knitr::knitr}\n"
" \\usepackage[utf8]{inputenc}"
msgstr ""
"title: \"Utiliser .SD pour l'analyse de données\"\n"
"date: \"`r Sys.Date()`\"\n"
"output:\n"
" markdown::html_format:\n"
"options:\n"
"toc: true\n"
"number_sections: true\n"
"meta:\n"
"css: [default, css/toc.css]\n"
"vignette: >\n"
" %\\VignetteIndexEntry{Using .SD for Data Analysis}\n"
" %\\VignetteEngine{knitr::knitr}\n"
" \\usepackage[utf8]{inputenc}"
#: e:/datatable-sd-usage-fr.Rmd:block 3 (paragraph)
msgid ""
"This vignette will explain the most common ways to use the `.SD` variable "
"in your `data.table` analyses. It is an adaptation of [this answer](https://"
"stackoverflow.com/a/47406952/3576984) given on StackOverflow."
msgstr ""
"Cette vignette explique les manières habituelles d'utiliser la variable `."
"SD` dans vos analyses de `data.table` . C'est une adaptation ce [cette "
"réponse](https://stackoverflow.com/a/47406952/3576984) donnée sur "
"StackOverflow."
#: e:/datatable-sd-usage-fr.Rmd:block 4 (header)
msgid "What is `.SD`?"
msgstr "C'est quoi `.SD`?"
#: e:/datatable-sd-usage-fr.Rmd:block 5 (paragraph)
msgid ""
"In the broadest sense, `.SD` is just shorthand for capturing a variable "
"that comes up frequently in the context of data analysis. It can be "
"understood to stand for *S*ubset, *S*elfsame, or *S*elf-reference of the "
"*D*ata. That is, `.SD` is in its most basic guise a *reflexive reference* "
"to the `data.table` itself -- as we'll see in examples below, this is "
"particularly helpful for chaining together \"queries\" (extractions/subsets/"
"etc using `[`). In particular, this also means that `.SD` is *itself a "
"`data.table`* (with the caveat that it does not allow assignment with `:=`)."
msgstr ""
"Au sens large, `.SD` est simplement un raccourci pour capturer une variable "
"qui apparait fréquemment dans le contexte de l'analyse de données. Il faut "
"comprendre *S* pour *S*ubset, *S*elfsame, ou *S*elf-reference et *D* pour "
"*D*onnée. Ce qui donne, `.SD` qui dans sa forme la plus basique est une "
"*référence réflexive* de la `data.table` elle-même -- comme nous le verrons "
"dans les exemples ci-dessous, ceci est particulièrement utile pour chaîner "
"ensemble les \"requêtes\" (extractions/sous-ensembles/etc... en utilisant "
"`[`). E particulier cela signifie aussi que *`.SD` est lui-même une `data."
"table`* (avec la mise en garde qu'il ne peut être assigné avec `:=`)."
#: e:/datatable-sd-usage-fr.Rmd:block 6 (paragraph)
msgid ""
"The simpler usage of `.SD` is for column subsetting (i.e., when `.SDcols` "
"is specified); as this version is much more straightforward to understand, "
"we'll cover that first below. The interpretation of `.SD` in its second "
"usage, grouping scenarios (i.e., when `by = ` or `keyby = ` is specified), "
"is slightly different, conceptually (though at core it's the same, since, "
"after all, a non-grouped operation is an edge case of grouping with just "
"one group)."
msgstr ""
"L'utilisation la plus simple de `.SD` est l'extraction de colonnes (c'est à "
"dire si `.SDcols` est utilisé); parce que cette version est beaucoup plus "
"facile à comprendre, nous l'aborderons en priorité ci-dessous. "
"L'interprétation de `.SD` dans une seconde étape, en groupant les scénarii "
"(par exemple quand `by = ` ou `keyby = ` sont spécifiés) est un peu "
"différent conceptuellement (bien qu'au niveau du noyau ce soit la même "
"chose car apès tout, uneopération non groupée est un cas aux limites de "
"groupement avec uniquement un seul groupe)."
#: e:/datatable-sd-usage-fr.Rmd:block 7 (header)
msgid "Loading and Previewing Lahman Data"
msgstr "Charger et afficher les données Lahman"
#: e:/datatable-sd-usage-fr.Rmd:block 8 (paragraph)
msgid ""
"To give this a more real-world feel, rather than making up data, let's load "
"some data sets about baseball from the [Lahman database](https://github.com/"
"cdalzell/Lahman). In typical R usage, we'd simply load these data sets from "
"the `Lahman` R package; in this vignette, we've pre-downloaded them "
"directly from the package's GitHub page instead."
msgstr ""
"Pour rendre cela un peu plus concret, plutôt que de modifier les données, "
"chargeons quelques ensembles de données concernant le baseball à partir de "
"la [base de données Lahman](https://github.com/cdalzell/Lahman). Dans R "
"typiquement, nous aurions simplement chargé ces ensembles de données du "
"package R `Lahman`; dans cette vignette, nous les avons préchargés à la "
"place, directement à partir de la page GitHub du package."
#: e:/datatable-sd-usage-fr.Rmd:block 10 (paragraph)
msgid ""
"Readers up on baseball lingo should find the tables' contents familiar; "
"`Teams` records some statistics for a given team in a given year, while "
"`Pitching` records statistics for a given pitcher in a given year. Please "
"do check out the [documentation](https://github.com/cdalzell/Lahman) and "
"explore the data yourself a bit before proceeding to familiarize yourself "
"with their structure."
msgstr ""
"Les lecteurs connaissant le jargon du baseball devraient trouver le contenu "
"des tableaux familier ; `Teams` enregistre certaines statistiques pour une "
"équipe et une année donnée, alors que `Pitching` enregistre les "
"statistiques pour un lanceur et une année donnée. Veuillez lire la "
"[documentation](https://github.com/cdalzell/Lahman) et explorer un peu les "
"données avant d'aller plus loin afin de vous familiariser avec leur "
"structure."
#: e:/datatable-sd-usage-fr.Rmd:block 11 (header)
msgid "`.SD` on Ungrouped Data"
msgstr "`.SD` sur des données non groupées"
#: e:/datatable-sd-usage-fr.Rmd:block 12 (paragraph)
msgid ""
"To illustrate what I mean about the reflexive nature of `.SD`, consider its "
"most banal usage:"
msgstr ""
"Pour illustrer ce que l'on entend par nature réflexive de `.SD`, "
"considérons son utilisation la plus banale :"
#: e:/datatable-sd-usage-fr.Rmd:block 14 (paragraph)
msgid ""
"That is, `Pitching[ , .SD]` has simply returned the whole table, i.e., this "
"was an overly verbose way of writing `Pitching` or `Pitching[]`:"
msgstr ""
"C'est à dire que `Pitching[ , .SD]` a simplement renvoyé la table complète, "
"et c'est une manière exagérément verbeuse d'écrire `Pitching` ou "
"`Pitching[]`:"
#: e:/datatable-sd-usage-fr.Rmd:block 16 (paragraph)
msgid ""
"In terms of subsetting, `.SD` is still a subset of the data, it's just a "
"trivial one (the set itself)."
msgstr ""
"En terme de sous-groupe, `.SD` est un sous-groupe des données, le plus "
"évident (c'est l'ensemble lui-même)."
#: e:/datatable-sd-usage-fr.Rmd:block 17 (header)
msgid "Column Subsetting: `.SDcols`"
msgstr "Extraction de colonnes : `.SDcols`"
#: e:/datatable-sd-usage-fr.Rmd:block 18 (paragraph)
msgid ""
"The first way to impact what `.SD` is is to limit the *columns* contained "
"in `.SD` using the `.SDcols` argument to `[`:"
msgstr ""
"La première façon d'impacter ce que représente `.SD` c'est de limiter les "
"*colonnes* contenues dans `.SD` en utilisant l'argument `.SDcols` dans `[` :"
#: e:/datatable-sd-usage-fr.Rmd:block 20 (paragraph)
msgid ""
"This is just for illustration and was pretty boring. In addition to "
"accepting a character vector, `.SDcols` also accepts:"
msgstr ""
"Ceci ne sert que d'illustration et était très ennuyeux. En plus d'accepter "
"un vecteur de caractères `.SDcols` accepte également :"
#: e:/datatable-sd-usage-fr.Rmd:block 21 (ordered list)
msgid "any function such as `is.character` to filter *columns*"
msgstr "fonction quelconque comme `is.character` pour filtrer les *colonnes*"
#: e:/datatable-sd-usage-fr.Rmd:block 21 (ordered list)
msgid ""
"the function^{*} `patterns()` to filter *column names* by regular expression"
msgstr ""
"la fonction^{*} `patterns()` pour filtrer les *noms des colonnes* avec une "
"expression régulière"
#: e:/datatable-sd-usage-fr.Rmd:block 21 (ordered list)
msgid "integer and logical vectors"
msgstr "vecteurs d'entiers et de booléens"
#: e:/datatable-sd-usage-fr.Rmd:block 22 (paragraph)
msgid "*see `?patterns` for more details"
msgstr "*voir `?patterns` pour davantage de détails"
#: e:/datatable-sd-usage-fr.Rmd:block 23 (paragraph)
msgid ""
"This simple usage lends itself to a wide variety of highly beneficial / "
"ubiquitous data manipulation operations:"
msgstr ""
"Cette simple utilisation permet une large variété d'opérations avantageuses "
"ou équivalentes de manipulation des données :"
#: e:/datatable-sd-usage-fr.Rmd:block 24 (header)
msgid "Column Type Conversion"
msgstr "Convertir un type de colonne"
#: e:/datatable-sd-usage-fr.Rmd:block 25 (paragraph)
msgid ""
"Column type conversion is a fact of life for data munging. Though [`fwrite` "
"recently gained the ability to declare the class of each column up front]"
"(https://github.com/Rdatatable/data.table/pull/2545), not all data sets "
"come from `fread` (e.g. in this vignette) and conversions back and forth "
"among `character`/`factor`/`numeric` types are common. We can use `.SD` and "
"`.SDcols` to batch-convert groups of columns to a common type."
msgstr ""
"La conversion du type de colonne est une réalité en gestion des données. "
"Bien que [`fwrite` a récemment gagné la possibilité de déclarer en amont la "
"classe de chaque colonne](https://github.com/Rdatatable/data.table/"
"pull/2545), chaque ensemble de données n'est pas forcément issu d'un "
"`fread` (comme dans cette vignette) et les conversions alternatives parmi "
"les types `character`, `factor`, et `numeric` sont courantes. Nous pouvons "
"utiliser `.SD` et `.SDcols` pour convertir par lots des groupes de colonnes "
"vers un type commun."
#: e:/datatable-sd-usage-fr.Rmd:block 26 (paragraph)
msgid ""
"We notice that the following columns are stored as `character` in the "
"`Teams` data set, but might more logically be stored as `factor`s:"
msgstr ""
"Remarquons que les colonnes suivantes sont rangées en tant que `character` "
"dans l'ensemble de données `Teams`, mais qu'elles pourraient "
"avantageusement être rangées comme `factor` :"
#: e:/datatable-sd-usage-fr.Rmd:block 28 (paragraph)
msgid "The syntax to now convert these columns to `factor` is simple:"
msgstr "La syntaxe pour convertir ces colonnes en `factor` est simple :"
#: e:/datatable-sd-usage-fr.Rmd:block 30 (paragraph)
msgid "Note:"
msgstr "Note :"
#: e:/datatable-sd-usage-fr.Rmd:block 31 (ordered list)
msgid ""
"The `:=` is an assignment operator to update the `data.table` in place "
"without making a copy. See [reference semantics](https://cran.r-project.org/"
"web/packages/data.table/vignettes/datatable-reference-semantics.html) for "
"more."
msgstr ""
"`:=` est un opérateur d'assignation pour mettre à jour la `data.table` "
"existante sans réaliser de copie. Voir les [sémantiques de référence]"
"(https://cran.r-project.org/web/packages/data.table/vignettes/datatable-"
"reference-semantics.html) pour plus d'informations."
#: e:/datatable-sd-usage-fr.Rmd:block 31 (ordered list)
msgid ""
"The LHS, `names(.SD)`, indicates which columns we are updating - in this "
"case we update the entire `.SD`."
msgstr ""
"Le membre de gauche, `names(.SD)`, indique les colonnes à mettre à jour - "
"dans ce cas il s'agit de tout le `.SD`."
#: e:/datatable-sd-usage-fr.Rmd:block 31 (ordered list)
msgid ""
"The RHS, `lapply()`, loops through each column of the `.SD` and converts "
"the column to a factor."
msgstr ""
"Le membre droit `lapply()`, boucle sur chaque colonne de `.SD` et convertit "
"la colonne en facteur."
#: e:/datatable-sd-usage-fr.Rmd:block 31 (ordered list)
msgid ""
"We use the `.SDcols` to only select columns that have pattern of `teamID`."
msgstr ""
"Nous utilisons `.SDcols` pour sélectionner uiquement les colonnes qui ont "
"pour modèle `teamID`."
#: e:/datatable-sd-usage-fr.Rmd:block 32 (paragraph)
msgid ""
"Again, the `.SDcols` argument is quite flexible; above, we supplied "
"`patterns` but we could have also supplied `fkt` or any `character` vector "
"of column names. In other situations, it is more convenient to supply an "
"`integer` vector of column *positions* or a `logical` vector dictating "
"include/exclude for each column. Finally, the use of a function to filter "
"columns is very helpful."
msgstr ""
"A nouveau, l'argument `.SDcols` est très souple ; nous avons fourni ci-"
"dessus `patterns` mais nous aurions pu passer également `fkt` ou tout "
"vecteur `character` de noms de colonnes. Dans d'autres situations, il est "
"plus pratique de fournir un vecteur `integer` de *positions* des colonnes "
"ou un vecteur de `booléens` indiquant pour chaque colonne s'il faut "
"l'inclure ou l'exclure. Finalement nous utilisons une fonction pour filtrer "
"les colonnes ce qui est très pratique."
#: e:/datatable-sd-usage-fr.Rmd:block 33 (paragraph)
msgid ""
"For example, we could do the following to convert all `factor` columns to "
"`character`:"
msgstr ""
"Par exemple nous pourrions faire ceci pour convertir toutes les colonnes "
"`factor` en `character` :"
#: e:/datatable-sd-usage-fr.Rmd:block 35 (paragraph)
msgid ""
"Lastly, we can do pattern-based matching of columns in `.SDcols` to select "
"all columns which contain `team` back to `factor`:"
msgstr ""
"Enfin nous pouvons rechercher la correspondance des colonnes basée sur des "
"modèles dans `.SDcols` pour sélectionner toutes les colonnes qui "
"contiennent `team` en utilisant `factor` :"
#: e:/datatable-sd-usage-fr.Rmd:block 37 (paragraph)
msgid ""
"** A proviso to the above: *explicitly* using column numbers (like `DT[ , "
"(1) := rnorm(.N)]`) is bad practice and can lead to silently corrupted code "
"over time if column positions change. Even implicitly using numbers can be "
"dangerous if we don't keep smart/strict control over the ordering of when "
"we create the numbered index and when we use it."
msgstr ""
"** En plus de ce qui a été dit ci-dessus : *utiliser *explicitement* le "
"numéro des colonnes (comme `DT[ , (1) := rnorm(.N)]`) n'est pas recommandé "
"et peut conduire progressivement à obtenir un code corrompu au fil du temps "
"si la position des colonnes change. Même l'utilisation implicite de numéros "
"peut être dangereuse si nous ne gardons pas un contrôle intelligent et "
"strict de l'ordre quand nous créons et utilisons l'index numéroté."
#: e:/datatable-sd-usage-fr.Rmd:block 38 (header)
msgid "Controlling a Model's Right-Hand Side"
msgstr "Contrôler le membre droit d'un modèle"
#: e:/datatable-sd-usage-fr.Rmd:block 39 (paragraph)
msgid ""
"Varying model specification is a core feature of robust statistical "
"analysis. Let's try and predict a pitcher's ERA (Earned Runs Average, a "
"measure of performance) using the small set of covariates available in the "
"`Pitching` table. How does the (linear) relationship between `W` (wins) and "
"`ERA` vary depending on which other covariates are included in the "
"specification?"
msgstr ""
"Modifier les spécifications du modèle est une fonctionnalité du noyau pour "
"l'analyse statistique robuste. Essayons de prédire l'ERA d'un lanceur "
"(Earned Runs Average, moyenne des tournois gagnés, une mesure de "
"performance) en utilisant le petit ensemble des covariables disponible dans "
"la table `Pitching`. Comment varie la relation (linéaire) entre `W` (wins) "
"et `ERA` en fonction des autres covariables que l'on inclut dans la "
"spécification ?"
#: e:/datatable-sd-usage-fr.Rmd:block 40 (paragraph)
msgid ""
"Here's a short script leveraging the power of `.SD` which explores this "
"question:"
msgstr ""
"Voici une courte description qui évalue la puissance de `.SD` explorant "
"cette question :"
#: e:/datatable-sd-usage-fr.Rmd:block 42 (paragraph)
msgid ""
"The coefficient always has the expected sign (better pitchers tend to have "
"more wins and fewer runs allowed), but the magnitude can vary substantially "
"depending on what else we control for."
msgstr ""
"Le coefficient a toujours le signe attendu (les meilleurs lanceurs ont "
"tendance à avoir plus de victoires et moins de tournois autorisés), mais "
"l'amplitude peut varier substantiellement en fonction de ce qui est "
"contrôlé par ailleurs."
#: e:/datatable-sd-usage-fr.Rmd:block 43 (header)
msgid "Conditional Joins"
msgstr "Jointures conditionnelles"
#: e:/datatable-sd-usage-fr.Rmd:block 44 (paragraph)
msgid ""
"`data.table` syntax is beautiful for its simplicity and robustness. The "
"syntax `x[i]` flexibly handles three common approaches to subsetting -- "
"when `i` is a `logical` vector, `x[i]` will return those rows of `x` "
"corresponding to where `i` is `TRUE`; when `i` is *another `data.table`* "
"(or a `list`), a (right) `join` is performed (in the plain form, using the "
"`key`s of `x` and `i`, otherwise, when `on = ` is specified, using matches "
"of those columns); and when `i` is a character, it is interpreted as "
"shorthand for `x[list(i)]`, i.e., as a join."
msgstr ""
"La syntaxe de `data.table` est belle par sa simplicité et sa robustesse. La "
"syntaxe `x[i]` gère de manière souple trois approches communes du sous-"
"groupement -- si `i` est un vecteur `booléen`, `x[i]` renvoie les lignes de "
"`x` qui correspondent aux indices où `i` vaut `TRUE`; si `i` est une *autre "
"`data.table`* (ou une `list`), une `jointure droite` (join right) est "
"réalisée (dans la forme à plat, en utilisant les `clés` de `x` et `i`, "
"sinon, si `on = ` est spécifié, en utilisant les colonnes qui "
"correspondent); et si `i` est un caratère, il est interprété comme "
"raccourci pour `x[list(i)]`, c'est à dire comme une jointure."
#: e:/datatable-sd-usage-fr.Rmd:block 45 (paragraph)
msgid ""
"This is great in general, but falls short when we wish to perform a "
"*conditional join*, wherein the exact nature of the relationship among "
"tables depends on some characteristics of the rows in one or more columns."
msgstr ""
"C'est puissant en général, mais perd de sa valeur rapidement si on souhaite "
"réaliser une *jointure conditionnelle*, où la nature exacte de la relation "
"entre les tables dépend de certaines caractéristiques des lignes dans une "
"ou plusieurs colonnes."
#: e:/datatable-sd-usage-fr.Rmd:block 46 (paragraph)
msgid ""
"This example is admittedly a tad contrived, but illustrates the idea; see "
"here ([1](https://stackoverflow.com/questions/31329939/conditional-keyed-"
"join-update-and-update-a-flag-column-for-matches), [2](https://"
"stackoverflow.com/questions/29658627/conditional-binary-join-and-update-by-"
"reference-using-the-data-table-package)) for more."
msgstr ""
"Cet exemple est certes un peu artificiel, mais il illustre l'idée ; voir "
"ici ([1](https://stackoverflow.com/questions/31329939/conditional-keyed-"
"join-update-and-update-a-flag-column-for-matches), [2](https://"
"stackoverflow.com/questions/29658627/conditional-binary-join-and-update-by-"
"reference-using-the-data-table-package)) pour plus d'informations."
#: e:/datatable-sd-usage-fr.Rmd:block 47 (paragraph)
msgid ""
"The goal is to add a column `team_performance` to the `Pitching` table that "
"records the team's performance (rank) of the best pitcher on each team (as "
"measured by the lowest ERA, among pitchers with at least 6 recorded games)."
msgstr ""
"Le but est d'ajouter une colonne `team_performance` à la table `Pitching` "
"qui enregistre les performances de l'équipe (rang) du meilleur lanceur de "
"chaque équipe (tel que mesuré par le ERA le plus faible, parmi les lanceurs "
"ayant au moins 6 jeux enregistrés)."
#: e:/datatable-sd-usage-fr.Rmd:block 49 (paragraph)
msgid ""
"Note that the `x[y]` syntax returns `nrow(y)` values (i.e., it's a right "
"join), which is why `.SD` is on the right in `Teams[.SD]` (since the RHS of "
"`:=` in this case requires `nrow(Pitching[rank_in_team == 1])` values)."
msgstr ""
"Notez que la syntaxe de `x[y]` renvoie `nrow(y)` values (c'est une jointure "
"droite), c'est pourquoi `.SD` se trouve à droite dans `Teams[.SD]` (parce "
"que le membre de droite de `:=` dans ce cas nécessite les valeurs de "
"`nrow(Pitching[rank_in_team == 1])` )."
#: e:/datatable-sd-usage-fr.Rmd:block 50 (header)
msgid "Grouped `.SD` operations"
msgstr "Opérations `.SD` groupées"
#: e:/datatable-sd-usage-fr.Rmd:block 51 (paragraph)
msgid ""
"Often, we'd like to perform some operation on our data *at the group "
"level*. When we specify `by =` (or `keyby = `), the mental model for what "
"happens when `data.table` processes `j` is to think of your `data.table` as "
"being split into many component sub-`data.table`s, each of which "
"corresponds to a single value of your `by` variable(s):"
msgstr ""
"Nous aimerions souvent réaliser une opération sur nos données *au niveau "
"groupe*. Si nous indiquons `by =` (ou `keyby = `), le modèle que nous "
"imaginons mentalement pour ce qui se passe quand `data.table` traite `j` "
"est de considérer que la `data.table` est constituée de plusieurs "
"composants sous-`data.table`, dont chacun correspond à une seule valeur des "
"variables du `by` :"
#: e:/datatable-sd-usage-fr.Rmd:block 52 (paragraph)
msgid ""
msgstr ""
#: e:/datatable-sd-usage-fr.Rmd:block 54 (paragraph)
msgid ""
"In the case of grouping, `.SD` is multiple in nature -- it refers to *each* "
"of these sub-`data.table`s, *one-at-a-time* (slightly more accurately, the "
"scope of `.SD` is a single sub-`data.table`). This allows us to concisely "
"express an operation that we'd like to perform on *each sub-`data.table`* "
"before the re-assembled result is returned to us."
msgstr ""
"En cas de groupement, `.SD` est multiple par nature -- il se réfère à "
"*chaque* sous-`data.table, *une à la fois* (ou plus précisément, la "
"visibilité de `.SD` est une sous-`data.table` unique). Ceci nous permet "
"d'indiquer précisément une opération à réaliser sur *chaque sous-`data."
"table`* avant de réassembler et renvoyer le résultat."
#: e:/datatable-sd-usage-fr.Rmd:block 55 (paragraph)
msgid ""
"This is useful in a variety of settings, the most common of which are "
"presented here:"
msgstr ""
"C'est utile pour diverses initialisations, les plus communes sont "
"présentées ici :"
#: e:/datatable-sd-usage-fr.Rmd:block 56 (header)
msgid "Group Subsetting"
msgstr "Sous-groupes"
#: e:/datatable-sd-usage-fr.Rmd:block 57 (paragraph)
msgid ""
"Let's get the most recent season of data for each team in the Lahman data. "
"This can be done quite simply with:"
msgstr ""
"Essayons d'obtenir la saison la plus récente des données pour chaque équipe "
"des données Lahman. Ceci peut être fait simplement avec :"
#: e:/datatable-sd-usage-fr.Rmd:block 59 (paragraph)
msgid ""
"Recall that `.SD` is itself a `data.table`, and that `.N` refers to the "
"total number of rows in a group (it's equal to `nrow(.SD)` within each "
"group), so `.SD[.N]` returns the *entirety of `.SD`* for the final row "
"associated with each `teamID`."
msgstr ""
"Rappelez-vous que `.SD` est lui-même une `data.table`, et que `.N` se "
"rapporte au nombre total de lignes dans un groupe (c'est égal à `nrow(.SD)` "
"à l'intérieur de chaque groupe), donc `.SD[.N]` renvoie la *totalité de `."
"SD`* pour la dernière ligne associée à chaque `teamID`."
#: e:/datatable-sd-usage-fr.Rmd:block 60 (paragraph)
msgid ""
"Another common version of this is to use `.SD[1L]` instead to get the "
"*first* observation for each group, or `.SD[sample(.N, 1L)]` to return a "
"*random* row for each group."
msgstr ""
"Une autre version commune de ceci est l'utilisation de `.SD[1L]` à la "
"place, pour obtenir la *première* observation de chaque groupe, ou `."
"SD[sample(.N, 1L)]` pour renvoyer une ligne *aléatoire* pour chaque groupe."
#: e:/datatable-sd-usage-fr.Rmd:block 61 (header)
msgid "Group Optima"
msgstr "Groupe Optima"
#: e:/datatable-sd-usage-fr.Rmd:block 62 (paragraph)
msgid ""
"Suppose we wanted to return the *best* year for each team, as measured by "
"their total number of runs scored (`R`; we could easily adjust this to "
"refer to other metrics, of course). Instead of taking a *fixed* element "
"from each sub-`data.table`, we now define the desired index *dynamically* "
"as follows:"
msgstr ""
"Supposons que nous voulions renvoyer la *meilleure* année pour chaque "
"équipe, tel que mesuré par leur nombre total de tournois enregistrés (`R`; "
"il est facile d'ajuster cela pour s'adapter à d'autres métriques, bien "
"sûr). Au lieu de prendre un élément *fixe* de chaque sous-`data.table`, "
"nous définissons maintenant *dynamiquement* l'indice souhaité ainsi :"
#: e:/datatable-sd-usage-fr.Rmd:block 64 (paragraph)
msgid ""
"Note that this approach can of course be combined with `.SDcols` to return "
"only portions of the `data.table` for each `.SD` (with the caveat that `."
"SDcols` should be fixed across the various subsets)"
msgstr ""
"Notez que cette approche peut bien sûr être combinée avec `.SDcols` pour "
"renvoyer uniquement les portions de `data.table` pour chaque `.SD` (avec la "
"mise en garde que `.SDcols` soit initialisé en fonction des différents sous-"
"ensembles)"
#: e:/datatable-sd-usage-fr.Rmd:block 65 (paragraph)
msgid ""
"*NB*: `.SD[1L]` is currently optimized by [*`GForce`*](https://Rdatatable."
"gitlab.io/data.table/library/data.table/html/datatable-optimize.html) ([see "
"also](https://stackoverflow.com/questions/22137591/about-gforce-in-data-"
"table-1-9-2)), `data.table` internals which massively speed up the most "
"common grouped operations like `sum` or `mean` -- see `?GForce` for more "
"details and keep an eye on/voice support for feature improvement requests "
"for updates on this front: [1](https://github.com/Rdatatable/data.table/"
"issues/735), [2](https://github.com/Rdatatable/data.table/issues/2778), [3]"
"(https://github.com/Rdatatable/data.table/issues/523), [4](https://github."
"com/Rdatatable/data.table/issues/971), [5](https://github.com/Rdatatable/"
"data.table/issues/1197), [6](https://github.com/Rdatatable/data.table/"
"issues/1414)"
msgstr ""
"*N.B.*: `.SD[1L]` est actuellement optimisé par [*`GForce`*](https://"
"Rdatatable.gitlab.io/data.table/library/data.table/html/datatable-optimize."
"html) ([voir aussi](https://stackoverflow.com/questions/22137591/about-"
"gforce-in-data-table-1-9-2)), fonctionnalités internes de `data.table` qui "
"accélèrent massivement les opérations groupées le plus souvent telles que "
"`sum` ou `mean` -- see `?GForce` pour plus de détails et garder un oeil "
"dessus / prise en charge de la voix pour les demandes de mises à jour de "
"l'amélioration des fonctionnalités sur ce front : [1](https://github.com/"
"Rdatatable/data.table/issues/735), [2](https://github.com/Rdatatable/data."
"table/issues/2778), [3](https://github.com/Rdatatable/data.table/"
"issues/523), [4](https://github.com/Rdatatable/data.table/issues/971), [5]"
"(https://github.com/Rdatatable/data.table/issues/1197), [6](https://github."
"com/Rdatatable/data.table/issues/1414)"
#: e:/datatable-sd-usage-fr.Rmd:block 66 (header)
msgid "Grouped Regression"
msgstr "Régression groupée"
#: e:/datatable-sd-usage-fr.Rmd:block 67 (paragraph)
msgid ""
"Returning to the inquiry above regarding the relationship between `ERA` and "
"`W`, suppose we expect this relationship to differ by team (i.e., there's a "
"different slope for each team). We can easily re-run this regression to "
"explore the heterogeneity in this relationship as follows (noting that the "
"standard errors from this approach are generally incorrect -- the "
"specification `ERA ~ W*teamID` will be better -- this approach is easier to "
"read and the *coefficients* are OK):"
msgstr ""
"Revenons à la requête ci-dessus à propos des relations entre `ERA` et `W`; "
"supposez que nous espérions que cette relation soit différente en fonction "
"de l'équipe (c'est à dire que la pente soit différente pour chaque équipe). "
"Nous pouvons facilement réexécuter cette régression pour explorer "
"l'hétérogenéité dans cette relation comme ceci (en notant que les erreurs "
"standard de cette approche sont généralement incorrectes -- la "
"spécification `ERA ~ W*teamID` sera meilleurs -- cette approche est plus "
"facile à lire et les *coefficients* sont OK) :"
#: e:/datatable-sd-usage-fr.Rmd:block 69 (paragraph)
msgid ""
"While there is indeed a fair amount of heterogeneity, there's a distinct "
"concentration around the observed overall value."
msgstr ""
"Tandis qu'il existe une grande hétérogénéité, la concentration autour de la "
"valeur générale observée reste très distincte."
#: e:/datatable-sd-usage-fr.Rmd:block 70 (paragraph)
msgid ""
"The above is just a short introduction of the power of `.SD` in "
"facilitating beautiful, efficient code in `data.table`!"
msgstr ""
"Tout ceci n'est simplement qu'une brève introduction sur la puissance de `."
"SD` qui facilite la beauté et l'efficacité du code dans `data.table` !"