inst/snippet/runif.R

runif(6,0,10)     # 6 random values on [0,10]
dunif(5,0,10)     # pdf is 1/10
punif(5,0,10)     # half the distribution is below 5
qunif(0.25,0,10)  # 1/4 of the distribution is below 2.5

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.