Skip to content

Instantly share code, notes, and snippets.

Jason Bryer jbryer

View GitHub Profile
dsparks / voronoi_raster.R
Created Oct 30, 2012
Image Manipulation, Part 3
View voronoi_raster.R
doInstall <- TRUE # Change to FALSE if you don't want packages installed.
toInstall <- c("ReadImages", "reshape", "ggplot2")
if(doInstall){install.packages(toInstall, repos = "")}
lapply(toInstall, library, character.only = TRUE)
# Image URL:
allImageURLs <- c("",
jverzani / singleton
Created Mar 1, 2012
example of singleton pattern
View singleton
## Singleton pattern
Singleton <- setRefClass("Singleton",
initialize=function(...) {
"Override this by defining Class"
thomasjensen / rbloggerAnalysis.r
Created Jan 6, 2012
analysing the data scraped from
View rbloggerAnalysis.r
#read the libraries
#set the working direcotry to where you saved the output.csv file from the previous post
#read the data
data <- read.csv("output.csv")
jbryer / RPackageInstaller.R
Created Nov 23, 2011
Install basic set of R packages
View RPackageInstaller.R
.libPaths() #By default, R will install packages to the first element
#This script will install some very common R packages.
repos = '' #Main CRAN = '' #Site provides some prebuilt binaries for Windows
repos.rforge = ''
libraries = c('Deducer', 'devtools', 'doBy', 'foreign', 'gdata', 'ggplot2', 'gmaps',
'Hmisc', 'JGR', 'maps', 'mapdata', 'mapproj', 'maptools', 'proto', 'psych', 'R2wd',
'Rcmdr', 'RCurl', 'reshape', 'RODBC', 'roxygen2', 'seqinr', 'sm', 'sp',
You can’t perform that action at this time.