ST 558 Project 2
Adeyemi Adepetun/Jiashu Zhao
7/4/2021
Purpose of this repository
The goal here is to read in the bike sharing data set , perform some elementary data analysis, create and compare predictive models and automate Markdown reports for different days using the day.csv data.
The packages required to run the analysis are readr,ggplot2, dplyr, knitr,caret,tidyr,lubridate,leaps,regclass, and MASS.
Code needed to automate the Markdown reports
```{r,eval = T} week_days <- c(“Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”) out_file <- paste0(week_days, “.md”) params <- lapply(week_days, FUN=function(x){ return(list(day=x)) }) reports <- tibble(week_days, out_file, params) reports
## Render function needed to generate the reports
```{r, eval=T}
library(rmarkdown)
apply(reports, MARGIN = 1, FUN=function(x){
render(input = "Weekday_Analysis.Rmd", output_file = x[[2]], params=x[[3]])
})
Reports that are generated for each day:
- The analysis for Monday is available here.
- The analysis for Tuesday is available here.
- The analysis for Wednesday is available here.
- The analysis for Thursday is available here.
- The analysis for Friday is available here.
- The analysis for Saturday is available here.
- The analysis for Sunday is available here.