R-beta: Problem with `rpois'

Fredrik Glockner fredrigl at math.uio.no
Wed Jul 9 16:54:31 CEST 1997


There is a problem with `rpois'.  It does seem to take care about the
order of the arguments.  This is an example:

> rpois(n=1,lambda=2)
[1] 3
> rpois(lambda=2,n=1)
[1] 2 0

It obviously uses the first argument as the number of samples to be
drawn, which is wrong.

I used Version 0.49 Beta (April 23, 1997).

Fredrik
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the R-help mailing list