GithubHelp home page GithubHelp logo

gdqr's Introduction

gdqr: Get Games Done Quick donation data

This package helps you download the donation data from the Games Done Quick events. The package fetches the data directly from the GDQ site and even contains a tidying function to clean up the data so it's ready for analysis.

This package is in pre-Alpha stage.

Installation

Package is not available on CRAN. To install it from Github:

devtools::install_github("bkkkk/gdqr", ref = "develop")

Usage

In order to obtain all data for SGDQ2015 and tidy it:

library(gdqr)
raw_sgdq2015 <- fetch_donations(event = "sgdq2015")
tidy_sgdq2015 <- tidy_donations(raw_sgdq2015)

Available events

At the moment the following events are available:

event <- c("cgdq", "agdq2011", "jrdq", "sgdq2011", "agdq2012", "sgdq2012",
           "spook", "agdq2013", "sgdq2013", "agdq2014", "sgdq2014", "agdq2015",
           "sgdq2015", "agdq2016", "sgdq2016")

The event argument of the fetch_* functions in the package refers to any one of the names above.

Available data types

Currently you can fetch donations and runs data. Each data type has an associated fetch_* and tidy_* functions:

tidy_donations(fetch_donations("sgdq2015", 2, 5))
tidy_runs(fetch_runs("sgdq2015"))

Dealing with pagination

The GDQ donation tracker displays a maximum of 50 donations per page. gdqr lets you download donation information from a range of pages.

The following commands will download all donations from pages 10 to 20, pages 10 and onwards, and up to page 20, respectively.

raw_sgdq2015 <- fetch_donations("sgdq2015", min_page = 10, max_page = 20)
raw_sgdq2015 <- fetch_donations("sgdq2015", min_page = 10)
raw_sgdq2015 <- fetch_donations("sgdq2015", max_page = 20)

Note that the donations are downloaded in time order so the first page contains the earliest donations and the last page contains the last donations made towards the end of the event.

Todo

  • Add support for fetching runs data
  • Add support for fetching bid data
  • Add support for fetching prizes data
  • Have a better way of dealing with event codenames

gdqr's People

Contributors

bkkkk avatar techneaux avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

techneaux

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.