In the R Programming, Simulation course there is the following question:
Generate 5 random values from a Poisson distribution with mean 10. Check out the
| documentation for rpois() if you need help.
This fails:
> rpois(5, lambda=c(10))
[1] 7 4 9 11 13
| Not quite! Try again. Or, type info() for more options.
| Use rpois(5, 10) to generate 5 random numbers from a Poisson distribution with mean 10.
yet this passes:
> rpois(5, lambda=10)
[1] 9 7 6 12 6
| You nailed it! Good job!
In the
R Programming
,Simulation
course there is the following question:This fails:
yet this passes: