[Rd] rbinom silently rounds size argument (PR#1377)

bolker@zoo.ufl.edu bolker@zoo.ufl.edu
Tue, 12 Mar 2002 15:36:49 +0100 (MET)


rbinom (in R-1.4.1) silently rounds its "size" argument. 
  The C code contains 

    n = floor(nin + 0.5); 

  I would argue that this should this either be documented or changed (to 
return NA). (The behavior is inconsistent with dbinom). 

  I sent this in to the devel list a couple of weeks ago to
provoke discussion; no disagreement (or agreement) so I'm
submitting it as a bug.

  Ben Bolker

--please do not edit the information below--

Version:
 platform = i686-pc-linux-gnu
 arch = i686
 os = linux-gnu
 system = i686, linux-gnu
 status = 
 major = 1
 minor = 4.1
 year = 2002
 month = 01
 day = 30
 language = R

Search Path:
 .GlobalEnv, package:ctest, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._