mercredi 22 avril 2020

Create a vector of different sequence repeated with runif and rnorm

I want to do something like :

vector <-  c(runif(3),rnorm(1), runif(3), rnorm(1)) 

I've tried :

vector <- rep( c(runif(3), rnorm(1) ), times = 2) )

But the problem is that it's two times the same sequence.

If you can help me please.

Have a nice day




Aucun commentaire:

Enregistrer un commentaire