[R] Convert back to lower triangular matrix

2011-11-15 Thread Juliet Ndukum
Given a vector; ab = seq(0.5,1, by=0.1) ab[1] 0.5 0.6 0.7 0.8 0.9 1.0 The euclidean distance between the vector elements is given by the lower triangular matrix  dd1 = dist(ab,euclidean) dd1    1   2   3   4   52 0.1                3 0.2 0.1            4 0.3 0.2 0.1        5 0.4 0.3 0.2 0.1    6

Re: [R] Convert back to lower triangular matrix

2011-11-15 Thread Jeff Newmiller
This is R-help, not the linear algebra hotline. Please stay on topic. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...

Re: [R] Convert back to lower triangular matrix

2011-11-15 Thread David Winsemius
On Nov 15, 2011, at 5:38 PM, Juliet Ndukum wrote: Given a vector; ab = seq(0.5,1, by=0.1) ab[1] 0.5 0.6 0.7 0.8 0.9 1.0 The euclidean distance between the vector elements is given by the lower triangular matrix dd1 = dist(ab,euclidean) dd11 2 3 4 5 2 0.1 3 0.2 0.1

Re: [R] Convert back to lower triangular matrix

2011-11-15 Thread Peter Langfelder
On Tue, Nov 15, 2011 at 2:38 PM, Juliet Ndukum jpnts...@yahoo.com wrote: Given a vector; ab = seq(0.5,1, by=0.1) ab[1] 0.5 0.6 0.7 0.8 0.9 1.0 The euclidean distance between the vector elements is given by the lower triangular matrix  dd1 = dist(ab,euclidean) dd1    1   2   3   4   52 0.1    

Re: [R] Convert back to lower triangular matrix

2011-11-15 Thread Bert Gunter
1. Please post in plain text, not HTML (as the posting guide asks!) 2. This might actually be an R question -- is ?lower.tri what you want? -- Bert On Tue, Nov 15, 2011 at 2:50 PM, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: This is R-help, not the linear algebra hotline. Please stay on