Skip to content

Instantly share code, notes, and snippets.

@scbrown86
Created July 3, 2019 23:15
Show Gist options
  • Save scbrown86/ad6f309f3756435af5c6f121e2b7551a to your computer and use it in GitHub Desktop.
Save scbrown86/ad6f309f3756435af5c6f121e2b7551a to your computer and use it in GitHub Desktop.
Generates random data with trend
x<- seq (from = 1, to = 100, by=1)
y<-cumsum(rnorm(100, mean = 1, sd = 20))
normalized = (y-min(y))/(max(y)-min(y))
y.mod <- (normalized*2)+10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment