Skip to content

Instantly share code, notes, and snippets.

View marcuspaget's full-sized avatar

Mark Paget marcuspaget

View GitHub Profile
@lambder
lambder / gist:2066588
Created March 17, 2012 23:36
The Zen of R
# I am a scientist who has been using R for about 2 years. Today I achieved a measure of enlightenment into
# the zen of R, and I want to share it with you.
# I was simulating a set of independent random walks, which are formed by a multiplicative process. Here is
# the code I had built up over a few months of working on it and modifying it on and off as research
# questions changed:
TimeSteps <- 1000
Walks <- 100
ErrorMagnitude <- 0.03