[Rd] possible bug in diag()

Marsland, John John.Marsland at CommerzbankIB.com
Wed Sep 17 18:51:40 MEST 2003


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}}



More information about the R-devel mailing list