[R] function for special matrix design

Wayne.W.Jones at shell.com Wayne.W.Jones at shell.com
Tue Oct 2 09:22:00 CEST 2007





-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org]On Behalf Of kevinchang
Sent: 01 October 2007 17:37
To: r-help at r-project.org
Subject: [R] function for special matrix design

Hi All,

I am trying to make a matrix with a particular value for all the elements
above and including diagonal and another particular value for all the
elements below diagonal. Obviously , Matrix function in Matrix package does
not work since it only allow filling by either row or column. So I am
wondering if there is a built-in function allowing me to do this ? please
help. Thanks

View this message in context: http://www.nabble.com/function-for-special-matrix-design-tf4549437.html#a12982709
Sent from the R help mailing list archive at Nabble.com.

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.

More information about the R-help mailing list