-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathREADME.Rmd
61 lines (46 loc) · 1.03 KB
/
README.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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# espnscrapeR
<!-- badges: start -->
<!-- badges: end -->
The goal of espnscrapeR is to collect or scrape QBR, NFL standings, and stats from ESPN.
## Installation
The development version from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("jthomasmock/espnscrapeR")
```
## Example
```{r example}
library(espnscrapeR)
```
```{r}
# Get NFL QBR for the 2019 regular season week 4
get_nfl_qbr("2019", season_type = "Regular", week = 4)
```
```{r}
# Get NFL standings for 2010
get_nfl_standings(2010)
```
```{r}
# Get NFL
scrape_espn_stats(2019, stat = "rushing")
```
```{r}
# Get college QBR for 2014 week 5
get_college_qbr(season = 2014, type = "weekly")
```
```{r}
# Get NFL teams with logos, colors, alternatives, etc
get_nfl_teams()
```