Coder Social home page Coder Social logo

lcarpenter20 / fivethirtyeight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rudeboybert/fivethirtyeight

0.0 0.0 0.0 324.13 MB

R package of data and code behind the stories and interactives at FiveThirtyEight

Home Page: https://fivethirtyeight-r.netlify.com/

License: Other

R 59.50% Python 6.34% Jupyter Notebook 34.16%

fivethirtyeight's Introduction

fivethirtyeight

Build Status Lifecycle: stable CRAN_Status_Badge CRAN RStudio mirror downloads

An R package that provides access to the code and data sets 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.

Installation

Get the latest released version from CRAN:

install.packages("fivethirtyeight")

Or the development version from GitHub:

# If you haven't installed the remotes package yet, do so:
# install.packages("remotes")
remotes::install_github("rudeboybert/fivethirtyeight", build_vignettes = TRUE)

Usage

library(fivethirtyeight)

# Load the bechdel data set. Note that all data in the fivethirtyeight package
# is lazy-loaded, so one can also access this data without running data(bechdel).
data(bechdel)
head(bechdel)
?bechdel

# If using RStudio:
View(bechdel)

To see a detailed list of all 127 datasets, including information on the corresponding articles published on FiveThirtyEight.com, click here.

Article in “Technology Innovations in Statistics Education”

The fivethirtyeight package was featured in The fivethirtyeight R Package: “Tame Data” Principles for Introductory Statistics and Data Science Courses by Kim, Ismay, and Chunn (2018) published in Volume 11, Issue 1 of the journal “Technology Innovations in Statistics Education”.

Abstract: As statistics and data science instructors, we often seek to use data in our courses that are rich, real, realistic, and relevant. To this end we created the fivethirtyeight R package of data and code behind the stories and interactives at the data journalism website FiveThirtyEight.com. After a discussion on the conflicting pedagogical goals of “minimizing prerequisites to research” (Cobb 2015) while at the same time presenting students with a realistic view of data as it exists “in the wild,” we articulate how a desired balance between these two goals informed the design of the package. The details behind this balance are articulated as our proposed “Tame data principles for introductory statistics and data science courses.” Details of the package’s construction and example uses are included as well.

Data Analysis Examples in Vignettes

For some data sets, there are user-contributed example analyses in the form a package vignette. For example, look at “Bechdel analysis using the tidyverse based on the bechdel dataset used in the article The Dollar-And-Cents Case Against Hollywood’s Exclusion of Women. For a complete list of vignettes run

vignette("user_contributed_vignettes.Rmd", package = "fivethirtyeight")

More Information

  • Andrew Flowers gave a great demonstration of the package and the bechdel vignette during his rstudio::conf talk in Orlando, Florida in January. The video of his talk is available here.
  • Click this Google Sheet for a master spreadsheet connecting
    1. the original 538 data on GitHub with
    2. the data frames in the package with
    3. information on the corresponding article

fivethirtyeight's People

Contributors

rudeboybert avatar jchunn avatar ismayc avatar starryz avatar mmanley18 avatar ireneryan avatar aballou16 avatar sunniraleigh avatar danicamiguel avatar niannucci avatar lcarpenter20 avatar fatimak98 avatar abarylsky avatar adhok avatar hadley avatar jonathanbouchet avatar mustafaascha avatar ranawg avatar davidsgrogan avatar mariumtapal avatar nsonneborn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.