jeudi 11 janvier 2018

The random value function other than runif in R

Is there any function that creates random values other than the normal distribution (runif or rnorm)? I have something like that,

<i>random_points <- function (w, e, s, n, npoints) {
 x <- runif (npoints, w, e)
 y <- runif (npoints, s, n)
 points <- data.frame (x, y) }

but I would like to use a function other than runif and rnorm, which would contain a certain range.




Aucun commentaire:

Enregistrer un commentaire