Skip to content

Instantly share code, notes, and snippets.

@Btibert3
Btibert3 / nhl-team-rankings.adoc
Last active January 18, 2016 19:22
2016 Neo4j Graphgist Competition: Rank NHL Teams using Stattleship's API

NHL Team Ranking Model using the Stattleship Sports API and Neo4j

Introduction

As part of the sports track, this post will collect data from Stattleship’s API using their R package, and store the data in Neo4j. I want to demonstrate how to easy it is with cypher to rank NHL teams based on their season performance as well as the team’s they have played. Querying the data from the API will require a token, but you can sign up for one here.

@abresler
abresler / exploding_boxplot_test
Last active February 1, 2017 14:35
Expoding Boxplot Function & nbastatR test use case
# load_packages -----------------------------------------------------------
packages <-
c('nbastatR', #devtools::install_github("abresler/nbastatR")
'explodingboxplotR', #devtools::install_github("timelyportfolio/explodingboxplotR")
'ggplot2',
'dplyr',
'purrr',
'magrittr')
@Btibert3
Btibert3 / README.md
Last active December 8, 2015 14:43
R function template and some basic tests for the API

About

Get the function out of the RMD file and start to put some structure to it.

Tear it apart.

To source the function

u = "https://gist.githubusercontent.com/Btibert3/c20c59a2b925562aa050/raw/f5a395239b78fc649432cfb6fcb7c22d8877225c/queryAPI.r"
@hannes
hannes / monetdblite.R
Last active November 15, 2015 18:49
MonetDBLite installation and usage example
# Obsolete, See https://www.monetdb.org/blog/monetdblite-r