Skip to content

Instantly share code, notes, and snippets.

View PirateGrunt's full-sized avatar
💭
coding

Brian Fannin PirateGrunt

💭
coding
View GitHub Profile
@PirateGrunt
PirateGrunt / gist:6059626
Created July 23, 2013 03:22
Vectors of S4 classes with non-trivial slots
movie = c("Thunderball", "Goldfinger")
rating = c(4,5)
dfJoe = data.frame(movie = movie, rating = rating)
movie = c("Manhattan", "Interiors", "Radio Days", "Bananas")
rating = c(5, 4, 3, 5)
dfBob = data.frame(movie = movie, rating = rating)
setClass("BorrowedStuff", representation(stuff = "data.frame", from="character"))
@PirateGrunt
PirateGrunt / Makefile
Created March 28, 2015 01:01
Basic makefile
####################
# Makefile
# Copyright Brian A. Fannin 2015
####################
RDIR = .
DATA_DIR = $(RDIR)/data
GATHER_DIR = $(DATA_DIR)/gather
GATHER_SOURCE = $(wildcard $(GATHER_DIR)/*.Rmd)