Giter VIP home page Giter VIP logo

stattleship-r's Introduction

stattleship-r

Stattleship R Wrapper brought to you by @stattleship.

Check out the Stattleship API - The Sports Data API you've always wanted

Affordable. Meaningful. Developer-Friendly.

๐Ÿˆ ๐Ÿ€ and โšซ with โšพ coming soon.

We're gonna need a bigger โ›ต!

Install

devtools::install_github("stattleship/stattleship-r")

Getting Started

Obtain an access TOKEN from stattleship.com. Load R and initialize your TOKEN for your session and load the library:

library(stattleshipR)
set_token('insert-your-token-here')

Get all NBA players:

league = "nba"
sport = "basketball"
ep = "players"
q_body = list()
players = ss_get_result(sport=sport, league=league, ep=ep, query=q_body, version=1, walk=TRUE)
players_df = do.call("rbind", lapply(players, function(x) x$players))

Get all triple doubles this NBA season:

league = "nba"
sport = "basketball"
ep = "stats"
q_body=list(stat="triple_double", type="basketball_doubles_stat")
tripdubs = ss_get_result(sport=sport, league=league, ep=ep, query=q_body, version=1, walk=FALSE)

Next Steps

Want more? Check out our available stats across an expanding number of sports at the Stattleship Playbook.

stattleship-r's People

Contributors

btibert3 avatar dthyresson avatar tcash21 avatar

Watchers

James Cloos avatar Jay 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.