forked from psu-stat380/weekly-summary-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
76 lines (50 loc) · 1.39 KB
/
index.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
---
title: "Weekly Summary Template"
author: "Author Name"
title-block-banner: true
title-block-style: default
toc: true
format: html
# format: pdf
---
---
## Tuesday, Jan 17
::: {.callout-important}
## TIL
Include a _very brief_ summary of what you learnt in this class here.
Today, I learnt the following concepts in class:
1. Item 1
1. Item 2
1. Item 3
:::
Provide more concrete details here. You can also use footenotes[^footnote] if you like
```{R results='hide'}
#| output: false
library(dplyr)
library(purrr)
```
For example:
in class we learnt we learnt about the `map` function from the `purrr` package.
```{R results='hide', fig.width=7, fig.height=7}
par(mfrow=c(3, 3), mar=c(3.5, 3.5, 2, 1), mgp=c(2.4, 0.8, 0))
map(1:9, function(i)rnorm(1000) %>% hist(., main=i, col=i))
```
## Thursday, Jan 19
::: {.callout-important}
## TIL
Include a _very brief_ summary of what you learnt in this class here.
Today, I learnt the following concepts in class:
1. Item 1
1. Item 2
1. Item 3
:::
Provide more concrete details here, e.g.,
In class we learnt how to use the `map` function to create multiple regression diagnostic plots
```{R results='hide', fig.height=4}
par(mfcol=c(2, 3), mar=c(3.5, 3.5, 2, 1), mgp=c(2.4, 0.8, 0))
mtcars %>%
split(.$cyl) %>%
map(~ lm(mpg ~ wt, data = .x)) %>%
map(function(x)plot(x, which=c(1, 2)))
```
[^footnote]: You can include some footnotes here