From John.Marsland at CommerzbankIB.com  Wed Sep 17 18:51:40 2003
From: John.Marsland at CommerzbankIB.com (Marsland, John)
Date: Wed Sep 17 18:51:48 2003
Subject: [Rd] possible bug in diag()
Message-ID: <8CBAA121CEB4D5118CB200508BB2BBEF0317E9A1@xmx8lonib.lonib.commerzbank.com>


It concerns trival diagonal matrices:

> diag(1)
     [,1]
[1,]    1


> diag(rnorm(1))
<0 x 0 matrix>


> diag(rnorm(1),nrow=1)
          [,1]
[1,] 0.4843697

There's an obvious work around... but I thought it was worth notifying the
list.

Regards,

John Marsland


********************************************************************** 
This is a commercial communication from Commerzbank AG.\ \ T...{{dropped}}


[Rd] possible bug in diag()
Marsland, John