An add-on R data package that contains the large datasets not found in the original fivethirtyeight package via a drat repository https://github.com/fivethirtyeightdata/drat published by FiveThirtyEight https://github.com/fivethirtyeight/data. Note that while we received guidance from editors at 538, this package is not officially published by 538. Contribute to this package at https://github.com/fivethirtyeightdata/fivethirtyeightdata.

Examples

# Example usage: library(fivethirtyeightdata) head(senators)
#> # A tibble: 6 × 10 #> created_at user text url replies retweets favorites bioguide_id #> <dttm> <chr> <chr> <chr> <dbl> <dbl> <dbl> <chr> #> 1 2017-10-19 21:47:00 amyklobuchar We r… http… 21 129 533 K000367 #> 2 2017-10-19 18:48:00 amyklobuchar I sp… http… 8 46 150 K000367 #> 3 2017-10-19 18:14:00 amyklobuchar Lots… http… 36 227 932 K000367 #> 4 2017-10-19 18:04:00 amyklobuchar Toda… http… 17 167 550 K000367 #> 5 2017-10-19 16:33:00 amyklobuchar .@Ma… http… 31 279 893 K000367 #> 6 2017-10-19 15:14:00 amyklobuchar Grea… http… 9 37 221 K000367 #> # … with 2 more variables: party <fct>, state <fct>
# All information about any data set can be found in the help file: ?senators # To view a list of all data sets: data(package = "fivethirtyeightdata")