Look at distm() in package geosphere or geoDist() in package SoDA.
---------------------------------------------- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 -----Original Message----- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of uday Sent: Friday, January 27, 2012 6:41 AM To: r-help@r-project.org Subject: [R] calculating distance between latitude and longitude I have some satellite data which contains latitude and longitude information . >From this data I would like to calculate distance between first location (scalar latitude and longitude) and all other (vectors latitude and longitude) How I should solve this problem ? -- View this message in context: http://r.789695.n4.nabble.com/calculating-distance-between-latitude-and-long itude-tp4333332p4333332.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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. ______________________________________________ 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.