George Bridges and Marcus Lee 6/27/2021
Packages we have used for this project:
ggplot2tidyversedplyrcarettidyrreadrknitrregclassgbmMetricsSo for this project, we are trying to automate R markdown. The code down
below passes a list of the days into Project2.Rmd.
Packages required to run the analyses are in the Project2.Rmd file.
days = c("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday","Sunday")
output_days_file = paste0(days, ".md")
params = lapply(days, FUN=function(x){
return(list(day=x))
})
report_by_day = tibble(days, output_days_file, params)
library(rmarkdown)
apply(report_by_day, MARGIN = 1, FUN=function(x){
render(input = "Project2.Rmd", output_file = x[[2]], params=x[[3]])
})
Here is Monday’s report.
Here is Tuesday’s report.
Here is Wednesday’s report.
Here is Thursday’s report.
Here is Friday’s report.
Here is Saturday’s report.
Here is Sunday’s report.