forked from fivethirtyeightdata/fivethirtyeightdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
48 lines (34 loc) · 1.24 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
---
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%"
)
library(dplyr)
library(knitr)
library(stringr)
all_fivethirtyeightdata_datasets <- data(package = "fivethirtyeightdata")$result[, c("Item", "Title")] %>%
as_tibble()
```
# fivethirtyeightdata
`fivethirtyeightdata` is an add-on R data package to the [`fivethirtyeight`](fivethirtyeight-r.netlify.app/) package that contains user-contributed `vignettes/`
and `r all_fivethirtyeightdata_datasets %>% nrow()` datasets that could not be included in `fivethirtyeight` due to CRAN package size restrictions:
```{r echo=FALSE}
all_fivethirtyeightdata_datasets %>%
mutate(Item = str_c("`", Item, "`")) %>%
kable()
```
The released version of this package is hosted using a [drat](https://github.com/fivethirtyeightdata/drat) repository made using the the `drat` package.
For more on using these data, see the GitHub repository for the `fivethirtyeight` package.
## Usage
To load the `senators` dataset for example run:
```{r, eval = FALSE}
library(fivethirtyeight)
library(fivethirtyeightdata)
senators
```