README.md

throner

Travis-CI Build Status

Throner is an R API wrapper for Throne.ai sports prediction contests.

Installation

devtools::install_github("martj42/throner")

Usage

The following functions are implemented:

library(throner)

auth("martj42", "f08dfrh2-we21-4520-b000-b49a0f4h4aea")

competitions <- get_competitions()

epl_results <- get_results("English Premier League")

epl_stats <- get_stats("English Premier League")

epl_lineups <- get_lineups("English Premier League")

epl_players <- get_players("English Premier League")

epl_fixtures <- get_fixtures("English Premier League")

epl_predictions <- your_awesome_model(epl_fixtures)

submit_predictions(epl_predictions, "English Premier League")

get_xp()

Please note that due to throttling limits you should SAVE your historical and competition data rather than reloading from Throne servers each time you run a script or a notebook.



martj42/throner documentation built on May 28, 2019, 7:37 a.m.