Re: [R] Using earth.dist function

2012-02-22 Thread cmartin
Thanks so much for the good advice. I was able to get the function to work. Cloe -- View this message in context: http://r.789695.n4.nabble.com/Using-earth-dist-function-tp4407892p4410920.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Using earth.dist function

2012-02-21 Thread R. Michael Weylandt
Your problem isn't in earth.dist but one step earlier in the call to data(). As the warning message says, it can't find your data...most of the time, data() is only used for built-in data sets; if you are bringing your own data to R you need to get it in another way: this might help http://cran.r-p

Re: [R] Using earth.dist function

2012-02-21 Thread Rolf Turner
Please do the following: install.packages("fortunes") require("fortunes") fortune("brain surgery") cheers, Rolf Turner On 22/02/12 07:42, cmartin wrote: Hi Everyone, I am a graduate student who will be using R to do my analysis. I need to do a spatial analysis, and

[R] Using earth.dist function

2012-02-21 Thread cmartin
Hi Everyone, I am a graduate student who will be using R to do my analysis. I need to do a spatial analysis, and the first step is to calculate the geographic distance between my study sites. I am hoping to use earth.dist because it allows for multiple pairwise distances to be calculated at one