This depends on what you mean by "distance between the 2 countries".

Do you want the shortest distance from a point on the border of each country?
The distance from the one capitol to the other?
Distance between centroids?
Weighted distance based on population distributions?
Etc.

Do you want great circle distance? driving distance? etc.

There are various packages that will read in and plot maps and tools
for calculating distances, you could easily use some of these (maps,
maptools, sp, etc.) once you decide on what distance measure to use.

On Wed, May 23, 2012 at 9:18 AM, Marta ter Haar <m.m.ter.h...@gmail.com> wrote:
> Hi everyone,
> I am looking for a package that would take "CountryName1" and
> "CountryName2" as input and spit out the distance (approximate)
> between the two countires. Does something like that exist?
> I don't have R experience, so making one myself is out of the question...
> Thanks in advance!
>
> ______________________________________________
> 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.



-- 
Gregory (Greg) L. Snow Ph.D.
538...@gmail.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.

Reply via email to