inst/snippet/generatingData02.R

rnorm(10,mean=10,sd=2)    # random draws from normal distribution
x <- 5:20                 # all integers in a range
sample(x,size=5)          # random sample of size 5 from x (no replacement)

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 2, 2019, 5:53 p.m.