summaryrefslogtreecommitdiffhomepage
path: root/r.html.markdown
diff options
context:
space:
mode:
authorAdam <adam@adambard.com>2013-09-08 21:52:54 -0700
committerAdam <adam@adambard.com>2013-09-08 21:52:54 -0700
commit6172fee1a4a44d53648a26cd7764de9fcea46313 (patch)
treebfb1264276f5d60713e2f9a760672076115faf51 /r.html.markdown
parenta933d419e07fd8af6effa89200b581e904c61679 (diff)
parent599ed0df3012ae578281dd92afc5a48891f56810 (diff)
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'r.html.markdown')
-rw-r--r--r.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/r.html.markdown b/r.html.markdown
index 03aa1dd2..9c17e8ca 100644
--- a/r.html.markdown
+++ b/r.html.markdown
@@ -298,7 +298,7 @@ if (4 > 3) {
# Defined like so:
jiggle <- function(x) {
- x+ rnorm(x, sd=.1) #add in a bit of (controlled) noise
+ x = x + rnorm(1, sd=.1) #add in a bit of (controlled) noise
return(x)
}