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]]
Have you read the Intoduction to R or other online tutorials to learn how R works before posting here? If not, please do so. -- Cheers, Bert On Thu, Sep 26, 2013 at 9:26 PM, Debasish Sahu <debasish08@gmail.com> wrote:> 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@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. >-- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm [[alternative HTML version deleted]]
Upton, Stephen (Steve) (CIV)
2013-Sep-27 14:51 UTC
[R] Calculating euclidean distance in R
?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.