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 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:

all_fivethirtyeightdata_datasets %>% 
  mutate(Item = str_c("`", Item, "`")) %>% 
  kable()

The released version of this package is hosted using a 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:

library(fivethirtyeight)
library(fivethirtyeightdata)
senators


fivethirtyeightdata/fivethirtyeightdata documentation built on Oct. 10, 2021, 2:13 p.m.