From bbolker at gmail.com  Wed Mar  2 14:58:06 2016
From: bbolker at gmail.com (Ben Bolker)
Date: Wed, 2 Mar 2016 08:58:06 -0500
Subject: [Rd] *tiny* inaccuracy in ?dbinom
Message-ID: <56D6F16E.2070902@gmail.com>


   under "Value", ?dbinom says

      If ?size? is not an integer, ?NaN? is returned.

That should be something like

       If ?size? is not an integer, ?NaN? is returned (or 'NA' for rbinom).

   ... at least that's what happens for me under svn rev 70138, Ubuntu 14

 > rbinom(1,size=0.5,prob=0.5)
[1] NA
Warning message:
In rbinom(1, size = 0.5, prob = 0.5) : NAs produced
 > dbinom(1,size=0.5,prob=0.5)
[1] NaN
Warning message:
In dbinom(1, size = 0.5, prob = 0.5) : NaNs produced



[Rd] *tiny* inaccuracy in ?dbinom
Ben Bolker