mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-16 19:54:38 +02:00
@@ -298,7 +298,7 @@ if (4 > 3) {
|
|||||||
|
|
||||||
# Defined like so:
|
# Defined like so:
|
||||||
jiggle <- function(x) {
|
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)
|
return(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user