From hosking at watson.ibm.com  Tue Oct 14 21:44:11 2003
From: hosking at watson.ibm.com (hosking@watson.ibm.com)
Date: Tue Oct 14 21:43:14 2003
Subject: [Rd] NA %*% 0 == 0 (PR#4582)
Message-ID: <200310141944.h9EJiB0P012013@pubhealth.ku.dk>

Full_Name: J . R. M. Hosking
Version: 1.8.0
OS: Windows 2000
Submission from: (NULL) (129.34.20.23)


On R 1.8.0 (and on R 1.5.1), Windows binary:

> NA %*% 0
     [,1]
[1,]    0

This is surprising.  Is it a bug?  Note that 

> 0 %*% NA
     [,1]
[1,]   NA
> NA %*% 1
     [,1]
[1,]   NA
> NA * 0
[1] NA

as expected.


[Rd] NA %*% 0 == 0 (PR#4582)
hosking@watson.ibm.com