[Rd] rpois(9, 1e10)
Benjamin Tyner
btyner @end|ng |rom gm@||@com
Sun Jan 19 16:34:59 CET 2020
> ------------------------------------------------------------------------
> Hello, All:
>
>
> Consider:
>
>
> Browse[2]> set.seed(1)
> Browse[2]> rpois(9, 1e10)
> NAs produced[1] NA NA NA NA NA NA NA NA NA
>
>
> Should this happen?
>
>
> I think that for, say, lambda>1e6, rpois should return rnorm(.,
> lambda, sqrt(lambda)).
But need to implement carefully; rpois should always return a
non-negative integer, whereas rnorm always returns numeric...
More information about the R-devel
mailing list