[R] Diagonal matrix with off diagonal elements

Jonas Malmros jonas.malmros at gmail.com
Fri Dec 21 21:58:27 CET 2007


Hi, everyone

I wonder if there is a function in R with which I can create a square
matrix with elements off main diagonal (for example one diagonal below
the main diagonal).

Thanks in advance!

-- 
Jonas Malmros
Stockholm University
Stockholm, Sweden



More information about the R-help mailing list