a recreation of "Analyizing Baseball with R" in R Markdown