[R] Calculating euclidean distance in R

Upton, Stephen (Steve) (CIV) scupton at nps.edu
Fri Sep 27 16:51:51 CEST 2013


?read.csv 
to read your data in,

then
?dist

to calculate distances.

steve

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Debasish Sahu
Sent: Friday, September 27, 2013 12:26 AM
To: r-help at r-project.org
Subject: [R] Calculating euclidean distance in R

Hello,
I am quite new to R.(in fact for the first time I am using) So forgive me if
I have asked a silly question.

I have a table in.csv format with data for location of samples in X, Y, Z
(column)format.
Now I want to calculate the Euclidean distance for the total sample dataset.

Can you please help me how to get the Euclidean distance of dataset .

Thanks & regards,
Debasish

	[[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org 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.


More information about the R-help mailing list