The short answer is no: there is no supported way to override an R system
function. The only reason we can see to do that is to correct a bug, and
we would prefer to get the buggy original changed ASAP.
It is much preferable for package authors to name variant versions
differently: if any 1 is
I had an error to debug that turned out to be essentially:
> NULL * matrix(1:4, 2)
Error: dim<- length of dims do not match the length of object
The equivalent of the NULL was a variable that was meant
to be a scalar. It took me a while to track down the problem
because I was focusing on looking
Full_Name: Jonathan Swinton
Version: 1.8.0
OS: Windows 2000
Submission from: (NULL) (193.132.159.34)
Calling qbinom with a sample probability of 1 returns NaN
> qbinom(p=0.95,size=10,prob=1)
[1] NaN
I believe that this is wrong and that qbinom(p,size,prob=1) should always be
size for 0=
p,
The error message is easy to expand, and R is a bit inconsistent as we do
have
error("length of dimnames[%d] not equal to array extent",i+1);
I've seen similar things debugging recently, and don't know the cause.
On Thu, 18 Dec 2003, Patrick Burns wrote:
> I had an error to debug that turned
The cases of prob=0 and prob=1 were specifically excluded in the code,
as well as n=0. I've added special-case code for all of these.
On Thu, 18 Dec 2003 [EMAIL PROTECTED] wrote:
> Full_Name: Jonathan Swinton
> Version: 1.8.0
> OS: Windows 2000
> Submission from: (NULL) (193.132.159.34)
>
>
>
On Thu, 18 Dec 2003 18:02:07 +, Gavin Simpson
<[EMAIL PROTECTED]> wrote :
>Dear List,
>
>My colleague has been having a problem with the following data and
>plotting commands. The example below is part of a larger set of plots,
>but I've isolated the problem to this example using this small