Hi, is there any direct R function to write an diagonal matrix in an opposite way? for example I want to get like:
 
> diag(rnorm(5))[,5:1]
           [,1]       [,2]       [,3]      [,4]       [,5]
[1,]  0.0000000  0.0000000  0.0000000  0.000000 -0.1504687
[2,]  0.0000000  0.0000000  0.0000000 -2.139669  0.0000000
[3,]  0.0000000  0.0000000 -0.2102133  0.000000  0.0000000
[4,]  0.0000000 -0.2609686  0.0000000  0.000000  0.0000000
[5,] -0.6818889  0.0000000  0.0000000  0.000000  0.0000000

Is there any typical name for this type of matrix?
 
Thanks,


	[[alternative HTML version deleted]]

