R-beta: Problem with `rpois'

Fredrik Glockner (fredrigl@math.uio.no)
09 Jul 1997 16:54:31 +0200


To: r-testers@stat.math.ethz.ch
Subject: R-beta: Problem with `rpois'
From: fredrigl@math.uio.no (Fredrik Glockner)
Date: 09 Jul 1997 16:54:31 +0200

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@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=