Code Monkey home page Code Monkey logo

fivethirtyeight's Introduction

fivethirtyeight

Build Status 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 & Usage

Get the released version from CRAN:

install.packages("fivethirtyeight")

Or the development version from GitHub:

# If you haven't installed devtools yet, do so:
# install.packages("devtools")
devtools::install_github("rudeboybert/fivethirtyeight")

Example usage:

library(fivethirtyeight)
data(package = "fivethirtyeight")

# Bechdel data set:
data(bechdel)
head(bechdel)
?bechdel
# If using RStudio:
View(bechdel)

More Information

See the package vignette for:

  1. Our motivation for creating this package.
  2. Guidelines we followed preparing the data sets and links to the code.
  3. A more detailed outline of all data sets.
vignette("fivethirtyeight", package = "fivethirtyeight")

Collaborate

Code

In many instances, the data sets had the R code used in the analysis. We would love to

  1. Convert the code to use tidyverse package tools
  2. Present the code in R Markdown format

For example, we did this using the R code for the article The Dollar-And-Cents Case Against Hollywood’s Exclusion of Women here:

vignette("bechdel", package = "fivethirtyeight")

Contributing to the Package

If you want to contribute to the package:

  • We followed the principles in Hadley Wickham's R packages book
  • Preliminary instructions for automating R package documentation and collecting data about the data sets is available here.

fivethirtyeight's People

Contributors

hadley avatar ismayc avatar jchunn avatar rudeboybert avatar

Watchers

 avatar  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.