Skip to content

Instantly share code, notes, and snippets.

View pssguy's full-sized avatar

Andrew Clark pssguy

View GitHub Profile
@hadley
hadley / s3.r
Created May 7, 2013 13:16
Implementation of request signing for Amazon's S3 in R.
library(httr)
library(digest)
library(XML)
s3_request <- function(verb, bucket, path = "/", query = NULL,
content = NULL, date = NULL) {
list(
verb = verb,
bucket = bucket,
path = path,
@woobe
woobe / README.md
Last active August 29, 2015 13:57
[rblocks]: Experiments

The rBlocks Experiement

Having fun with Ramnath Vaidyanathan's new package rblocks!

Iris & AirPassengers

iris

ap

@tomravalde
tomravalde / gantt-ggplot.R
Last active June 20, 2017 18:14
Gantt chart (ggplot)
# Gantt chart based on my PhD completion timetable.
## Below is a copy of gantt.csv (built initially in a spreadsheet)
#Task,Start,End,Chapter
#"Metabolic efficiency reading (3)",2014/08/01,2014/11/30,3
#"Metabolic efficiency data analysis (3)",2014/11/01,2015/02/28,3
#"Model development (4)",2014/08/01,2014/10/30,4
#"Shann Gu case study (5)",2014/08/01,2014/10/30,5
#"Metabolic pathway database construction (6)",2014/08/01,2015/04/30,6
#"Metabolic pathaway analysis (6)",2015/03/01,2015/06/30,6
@batpigandme
batpigandme / steph_gls_stattleship_retrieval.R
Last active August 29, 2016 13:01
Retrieve nba-stephen-curry game logs from stattleship API.
## install and load the stattleshipR package
devtools::install_github("stattleship/stattleship-r")
library(stattleshipR)
## optional: load dplyr
library(dplyr)
## get your API token stattleship.com
## set API token
set_token('YOUR API TOKEN')