vendredi 17 mars 2017

Mean and Rep function in Random number generation

x<-rnorm(12, mean=rep(1:3,each=4), sd=0.2)

Can someone please explain the translation of the above statement? Why do we specify rep(1:3) and each=4 here?




Aucun commentaire:

Enregistrer un commentaire