-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomework_3.Rmd
131 lines (74 loc) · 1.59 KB
/
homework_3.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
title: "Homework 3"
author: "FirstName LastName"
date: "`r Sys.Date()`"
documentclass: article
geometry: margin=1in
fontsize: 11pt
---
```{r setup, include = FALSE}
# DO NOT ALTER THIS CHUNK
# Set knitr options
knitr::opts_chunk$set(
echo = TRUE,
eval = TRUE,
cache = FALSE,
warning = FALSE,
message = FALSE,
fig.width = 5,
fig.asp = 0.618,
fig.align = "center",
out.width = "80%",
dpi = 120
)
# Load required packages
suppressPackageStartupMessages(library(tidyverse))
suppressPackageStartupMessages(library(rvest))
```
## Scraping men's basketball schedule and scores
### Question 1
<!-- Put code to fetch and save the HTML for the men's basketball schedule and scores in the code block below -->
```{r fetch-and-save-mens-bb-schedule-html, eval = FALSE}
```
<!-- Put code to read the saved HTML file in the code block below -->
```{r read-mens-bb-schedule-html}
```
### Question 2
```{r}
```
### Question 3
```{r}
```
### Question 4
```{r}
```
### Question 5
```{r}
```
### Question 6
```{r}
```
### Question 7
```{r}
```
### Question 8
```{r}
```
## Scraping women's basketball schedule and scores
### Question 9
<!-- Put code to fetch and save the HTML for the women's basketball schedule and scores in the code block below -->
```{r fetch-and-save-womens-bb-schedule-html, eval = FALSE}
```
<!-- Put code to read the saved HTML file in the code block below -->
```{r read-womens-bb-schedule-html}
```
<!-- Put rest of web scraping code below this line -->
```{r}
```
## Data exploration
### Question 10
```{r}
```
### Question 11
```{r}
```