Skip to content
Prev 277535 / 398506 Next

Convert full matrix back to lower triangular matrix

Hi:

(1) Here is why your e-mails look mangled on this list:
     R-help is a text-only list, so please change your mailer's
settings to send ASCII text rather than HTML.

(2) The print method you see displayed in dd1 is equivalent to the following:

ddm * lower.tri(ddm)

Note that lower.tri(ddm) produces a logical matrix; in R, when you
multiply a numeric object by a logical, the latter is converted to 0's
and 1's. In this case, the lower triangular elements are retained
while the other elements are coerced to 0.

HTH,
Dennis
On Tue, Nov 15, 2011 at 2:55 PM, Juliet Ndukum <jpntsang at yahoo.com> wrote: