Re: [R] Euclidean Distance in 3 Dimensions

2014-08-22 Thread William Dunlap
> This function unfortunately does not work in 3d space. [I think 'this' is refering to the 'dist' function.] Can you show how it is not working for you? I.e., what does it produce compared to what you want for a given input? dist() does work on a 3-column (or n-column) matrix or data.frame, wh

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-21 Thread Patzelt, Edward
This function unfortunately does not work in 3d space. Thoughts? On Wed, Aug 20, 2014 at 4:57 PM, Don McKenzie wrote: > ?dist > > from the help > > dist {stats}R Documentation > Distance Matrix Computation > > Description > > This function computes and returns the distance matrix computed

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-21 Thread Patzelt, Edward
r-help-boun...@r-project.org] > *On Behalf Of *Don McKenzie > *Sent:* Thursday, August 21, 2014 1:44 PM > *To:* Patzelt, Edward > *Cc:* R-help@r-project.org > *Subject:* Re: [R] Euclidean Distance in 3 Dimensions > > > > Ugh sorry. I misread your message obviously. Cc�ing

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-21 Thread David L Carlson
rocess the matrices in each list to get what you want. David C From: Patzelt, Edward [mailto:patz...@g.harvard.edu] Sent: Thursday, August 21, 2014 2:58 PM To: David L Carlson Cc: Don McKenzie; R-help@r-project.org Subject: Re: [R] Euclidean Distance in 3 Dimensions Your first description is c

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-21 Thread David L Carlson
: [R] Euclidean Distance in 3 Dimensions Ugh sorry. I misread your message obviously. Cc�ing back to the list (as is the protocol) I�m surprised no one else has replied. I�m a lightweight compared to others on the list. It looks as if the dist() function has compiled code, which suggests that t

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-21 Thread Don McKenzie
Ugh sorry. I misread your message obviously. Cc�ing back to the list (as is the protocol) I�m surprised no one else has replied. I�m a lightweight compared to others on the list. It looks as if the dist() function has compiled code, which suggests that there is some gnarly linear algebra unde

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-20 Thread Don McKenzie
?dist from the help dist {stats}R Documentation Distance Matrix Computation Description This function computes and returns the distance matrix computed by using the specified distance measure to compute the distances between the rows of a data matrix. Is this what you want? Computing on

[R] Euclidean Distance in 3 Dimensions

2014-08-20 Thread Patzelt, Edward
R Community - I am attempting to write a function that will calculate the distance between points in 3 dimensional space for unique regions (e.g. localized brain regions such as the frontal lobe). For example I'm looking to compare each point in region 45 to every other region in 45 to establish