[R] locating element in distance matrix

2013-01-11 Thread eliza botto
Dear useRs, I have a very basic question. I have a distance matrix and i skipped the upper part of it deliberately. The distance matrix is 1000*1000. Then i used min command to extract the lowest value from that matrix. Now i want to know what is the location of that lowest element? More

Re: [R] locating element in distance matrix

2013-01-11 Thread Berend Hasselman
On 11-01-2013, at 18:55, eliza botto eliza_bo...@hotmail.com wrote: Dear useRs, I have a very basic question. I have a distance matrix and i skipped the upper part of it deliberately. The distance matrix is 1000*1000. Then i used min command to extract the lowest value from that matrix.

Re: [R] locating element in distance matrix

2013-01-11 Thread J Toll
On Fri, Jan 11, 2013 at 11:55 AM, eliza botto eliza_bo...@hotmail.comwrote: Dear useRs, I have a very basic question. I have a distance matrix and i skipped the upper part of it deliberately. The distance matrix is 1000*1000. Then i used min command to extract the lowest value from that

Re: [R] locating element in distance matrix

2013-01-11 Thread David Winsemius
On Jan 11, 2013, at 9:55 AM, eliza botto wrote: Dear useRs, I have a very basic question. I have a distance matrix and i skipped the upper part of it deliberately. I have no idea what htat means. Code is always helpful in resolving ambiguities. The distance matrix is 1000*1000. Then

Re: [R] locating element in distance matrix

2013-01-11 Thread David L Carlson
-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of David Winsemius Sent: Friday, January 11, 2013 12:37 PM To: eliza botto Cc: r-help@r-project.org Subject: Re: [R] locating element in distance matrix On Jan 11, 2013, at 9:55 AM, eliza botto wrote: Dear useRs, I have a very

Re: [R] locating element in distance matrix

2013-01-11 Thread David Winsemius
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of David Winsemius Sent: Friday, January 11, 2013 12:37 PM To: eliza botto Cc: r-help@r-project.org Subject: Re: [R] locating element in distance matrix On Jan 11, 2013, at 9:55 AM

Re: [R] locating element in distance matrix

2013-01-11 Thread David L Carlson
-project.org Subject: Re: [R] locating element in distance matrix On Jan 11, 2013, at 1:51 PM, David L Carlson wrote: If you have a dist object (created by dist()) or if you used lower.tri(x) to extract the lower triangle of the matrix, which() will not work since the matrix is now stored

Re: [R] locating element in distance matrix

2013-01-11 Thread eliza botto
Dear all,thanyou so very much. elisa From: dcarl...@tamu.edu To: dwinsem...@comcast.net CC: eliza_bo...@hotmail.com; r-help@r-project.org Subject: RE: [R] locating element in distance matrix Date: Fri, 11 Jan 2013 16:41:13 -0600 If you really have a matrix to begin with, yes. But if you