[R] Diagonal matrix with off diagonal elements

From: Jonas Malmros <jonas.malmros_at_gmail.com>
Date: Fri, 21 Dec 2007 21:58:27 +0100

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

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 21 Dec 2007 - 21:03:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Dec 2007 - 23:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.