From: roger bos <roger.bos_at_gmail.com>

Date: Tue 03 Oct 2006 - 20:59:04 GMT

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Oct 04 07:07:53 2006

Date: Tue 03 Oct 2006 - 20:59:04 GMT

mps <- matrix(rep(.4, 3*3), nrow=n, byrow=TRUE)
idx <- diag(3)

mps

idx

mps[idx] <- rep(.6,3)

I also tried something along the lines of diag(mps=.6, ...) but it didn't know what mps was.

Thanks,

Roger

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Oct 04 07:07:53 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Tue 03 Oct 2006 - 22:30:06 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.
*