-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
84 lines (62 loc) · 3.82 KB
/
index.Rmd
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
77
78
79
80
81
82
83
84
---
title: "R Module 2"
author:
- "Connor Gibbs^[Department of Statistics, Colorado State University, [email protected]]"
date: "`r format(Sys.time(), '%d %h, %Y, %I:%M %p')`"
description: This is the second installment for the book for the R Intro Course at CSU.
link-citations: yes
bibliography:
- src/book.bib
site: bookdown::bookdown_site
biblio-style: apalike
citation_package: natbib
---
# Welcome!
```{r, knitr_options, echo=FALSE, results='hide', message=FALSE}
# fig.align="center" centers figures
# comment=NA remove "##" from R output
# results="hold" don't interleave chunk code and output, but hold all output until end of chunk.
# class.source="chunk-style" Use the CSS style "chunk-style" to style code chunks
# class.output="output-style" Use the CSS style "output-style" to style output of code chunks
knitr::opts_chunk$set(fig.align="center", comment=NA, results="hold", class.source="chunk-style", class.output="output-style", message=FALSE, warning=FALSE)
knitr::knit_hooks$set(
error = function(x, options){
paste0('\n<pre class="sourceCode r error-style"><code>', x, '</code></pre>')
}
)
# Scripts needed for compilation
source('./rscripts/nfl_lines_from_api.R') # Chapter 2
# A recent change in RMarkdown required this change.
library(kableExtra)
library(lubridate)
start_date <- ymd("2020/07/13")
# designed as a four week course that "meets" 3 times per week.
course_dates <- start_date + sort(as.vector(outer(c(0, 2, 4), c(0, 7, 14, 21), "+")))
r_version <- "4.0.2"
```
Hi, and welcome to the R Module 2 (AKA STAT 158) course at Colorado State University!
This course is the second of three 1 credit courses intended to introduce the R programming language, specifically the Tidyverse.
Through these Modules (courses), we'll explore how R can be used to do the following:
1. Access data via files or web application programming interfaces (APIs)
1. Scrape data from web
1. Wrangle and clean complicated data structures
1. Create graphics with an eye for quality and aesthetics
1. Understand data using basic modeling
In addition, you'll also be exposed to broader concepts, including:
1. Data organization and storage
1. Hypertext Markup Language (HTML)
1. Tidyverse principles
More detail will be provided in the Course Topics laid out in the next chapter.
### How To Navigate This Book
To move quickly to different portions of the book, click on the appropriate chapter or section in the the table of contents on the left.
The buttons at the top of the page allow you to show/hide the table of contents, search the book, change font settings, download a pdf or ebook copy of this book, or get hints on various sections of the book.
The faint left and right arrows at the sides of each page (or bottom of the page if it's narrow enough) allow you to step to the next/previous section.
Here's what they look like:
```{r, echo=F, fig.cap="Left and right navigation arrows", fig.show="hold", results='asis'}
knitr::include_graphics("src/images/left_arrow.png")
knitr::include_graphics("src/images/right_arrow.png")
```
## Associated CSU Course
This bookdown book is intended to accompany the associated course at Colorado State University, but the curriculum is free for anyone to access and use.
If you're reading the PDF or EPUB version of this book, you can find the "live" version at [https://csu-r.github.io/Module2/](https://csu-r.github.io/Module2/), and all of the source files for this book can be found at [https://github.com/CSU-R/Module2](https://github.com/CSU-R/Module2).
If you're not taking the CSU course, you will periodically encounter instructions and references which are not relevant to you. For example, we will make reference to the Canvas website, which only CSU students enrolled in the course have access to.