library(dplyr)
library(purrr)
Tuesday, Jan 17
Provide more concrete details here. You can also use footenotes1 if you like
For example: in class we learnt we learnt about the map
function from the purrr
package.
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
Provide more concrete details here, e.g.,
In class we learnt how to use the map
function to create multiple regression diagnostic plots
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)))
Footnotes
You can include some footnotes here↩︎