-
Notifications
You must be signed in to change notification settings - Fork 95
/
reflection_template.qmd
487 lines (278 loc) · 7.08 KB
/
reflection_template.qmd
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
---
title: "STAT 331 Portfolio"
author: "Your Name Goes Here"
format:
html:
self-contained: true
layout: margin-left
editor: visual
execute:
eval: false
echo: true
---
[**My Grade:**]{.underline} I believe my grade equivalent to course work evidenced below to be an __.
[**Learning Objective Evidence:**]{.underline} In the code chunks below, provide code from Lab or Challenge assignments where you believe you have demonstrated proficiency with the specified learning target. Be sure to specify **where** the code came from (e.g., Lab 4 Question 2).
## Working with Data
**WD-1: I can import data from a *variety* of formats (e.g., csv, xlsx, txt, etc.).**
- `csv`
```{r}
#| label: wd-1-csv
```
- `xlsx`
```{r}
#| label: wd-1-xlsx
```
- `txt`
```{r}
#| label: wd-1-txt
```
**WD-2: I can select necessary columns from a dataset.**
```{r}
#| label: wd-2
```
**WD-3: I can filter rows from a dataframe for a *variety* of data types (e.g., numeric, integer, character, factor, date).**
- numeric
```{r}
#| label: wd-3-numeric
```
- character -- specifically a string (example must use functions from **stringr**)
```{r}
#| label: wd-3-string
```
- factor
```{r}
#| label: wd-3-factor
```
- date (example must use functions from **lubridate**)
```{r}
#| label: wd-3-date
```
**WD-4: I can modify existing variables and create new variables in a dataframe for a *variety* of data types (e.g., numeric, integer, character, factor, date).**
- numeric (using `as.numeric()` is not sufficient)
```{r}
#| label: wd-4-numeric
```
- character -- specifically a string (example must use functions from **stringr**)
```{r}
#| label: wd-4-string
```
- factor (example must use functions from **forcats**)
```{r}
#| label: wd-4-factor
```
- date (example must use functions from **lubridate**)
```{r}
#| label: wd-4-date
```
**WD-5: I can use mutating joins to combine multiple dataframes.**
- `left_join()`
```{r}
#| label: wd-5-left
```
- `right_join()`
```{r}
#| label: wd-5-right
```
- `inner_join()`
```{r}
#| label: wd-5-inner
```
- `full_join()`
```{r}
#| label: wd-5-full
```
**WD-6: I can use filtering joins to filter rows from a dataframe.**
- `semi_join()`
```{r}
#| label: wd-6-semi
```
- `anti_join()`
```{r}
#| label: wd-6-anti
```
**WD-7: I can pivot dataframes from long to wide and visa versa**
- `pivot_longer()`
```{r}
#| label: wd-7-long
```
- `pivot_wider()`
```{r}
#| label: wd-7-wide
```
## Reproducibility
**R-1: I can create professional looking, reproducible analyses using RStudio projects, Quarto documents, and the here package.**
I've done this in the following provided assignments:
**R-2: I can write well documented and tidy code.**
- Example of **ggplot2** plotting
```{r}
#| label: r-2-1
```
- Example of **dplyr** pipeline
```{r}
#| label: r-2-2
```
- Example of function formatting
```{r}
#| label: r-2-3
```
**R-3: I can write robust programs that are resistant to changes in inputs.**
- Example -- any context
```{r}
#| label: r-3-example
```
- Example of function stops
```{r}
#| label: r-3-function-stops
```
## Data Visualization & Summarization
**DVS-1: I can create visualizations for a *variety* of variable types (e.g., numeric, character, factor, date)**
- at least two numeric variables
```{r}
#| label: dvs-1-num
```
- at least one numeric variable and one categorical variable
```{r}
#| label: dvs-2-num-cat
```
- at least two categorical variables
```{r}
#| label: dvs-2-cat
```
- dates (timeseries plot)
```{r}
#| label: dvs-2-date
```
**DVS-2: I use plot modifications to make my visualization clear to the reader.**
- I can ensure people don't tilt their head
```{r}
#| label: dvs-2-1
```
- I can modify the text in my plot to be more readable
```{r}
#| label: dvs-2-2
```
- I can reorder my legend to align with the colors in my plot
```{r}
#| label: dvs-2-3
```
**DVS-3: I show creativity in my visualizations**
- I can use non-standard colors
```{r}
#| label: dvs-3-1
```
- I can use annotations
```{r}
#| label: dvs-3-2
```
- I can be creative...
```{r}
#| label: dvs-3-3
```
**DVS-4: I can calculate numerical summaries of variables.**
- Example using `summarize()`
```{r}
#| label: dvs-4-summarize
```
- Example using `across()`
```{r}
#| label: dvs-4-across
```
**DVS-5: I can find summaries of variables across multiple groups.**
- Example 1
```{r}
#| label: dvs-5-1
```
- Example 2
```{r}
#| label: dvs-5-2
```
**DVS-6: I can create tables which make my summaries clear to the reader.**
- Example 1
```{r}
#| label: dvs-6-1
```
- Example 2
```{r}
#| label: dvs-6-2
```
**DVS-7: I show creativity in my tables.**
- Example 1
```{r}
#| label: dvs-7-1
```
- Example 2
```{r}
#| label: dvs-7-2
```
## Program Efficiency
**PE-1: I can write concise code which does not repeat itself.**
- using a single function call with multiple inputs (rather than multiple function calls)
```{r}
#| label: pe-1-one-call
```
- `across()`
```{r}
#| label: pe-1-across
```
- `map()` functions
```{r}
#| label: pe-1-map-1
```
**PE-2: I can write functions to reduce repetition in my code.**
- Function that operates on vectors
```{r}
#| label: pe-2-1
```
- Function that operates on data frames
```{r}
#| label: pe-2-2
```
**PE-3:I can use iteration to reduce repetition in my code.**
- `across()`
```{r}
#| label: pe-3-across
```
- `map()` function with **one** input (e.g., `map()`, `map_chr()`, `map_dbl()`, etc.)
```{r}
#| label: pe-3-map-1
```
- `map()` function with **more than one** input (e.g., `map_2()` or `pmap()`)
```{r}
#| label: pe-3-map-2
```
**PE-4: I can use modern tools when carrying out my analysis.**
- I can use functions which are not superseded or deprecated
```{r}
#| label: pe-4-1
```
- I can connect a data wrangling pipeline into a `ggplot()`
```{r}
#| label: pe-4-2
```
## Data Simulation & Statisical Models
**DSSM-1: I can simulate data from a *variety* of probability models.**
- Example 1
```{r}
#| label: dsm-1-1
```
- Example 2
```{r}
#| label: dsm-1-2
```
**DSSM-2: I can conduct common statistical analyses in R.**
- Example 1
```{r}
#| label: dsm-2-1
```
- Example 2
```{r}
#| label: dsm-2-2
```
## Revising My Thinking
<!-- How did you revise your thinking throughout the course? How did you revise your thinking on the code examples you have provided in your portfolio? -->
<!-- For the revisions included in your Portfolio, to help me understand the nature of your revisions, please denote somehow the feedback I provided you (e.g., boldface, italics, colored text) before your revisions. -->
## Extending My Thinking
<!-- How did you extended your thinking throughout the course? How did you extend your thinking on the code examples you have provided in your portfolio? -->
## Peer Support & Collaboration
<!-- Include an image or a description of feedback you gave that you are proud of (either in a peer review or in Discord). -->
<!-- Include a description of how you grew as a collaborator through the weekly pair programming activities. -->