I am brand new to using R, so I apologize if this question is trivial. Using R, I want to generate 100 random numbers from an exponential distribution with a mean of 50. I want to store these numbers in a vector. I think I did it correctly, but I cannot find anything on the internet to verify my code. Here is my code:
vector <- rexp(100,50)
Aucun commentaire:
Enregistrer un commentaire