Exactly what I was looking for. Thank you very much.
Jim
> Jim Bouldin writes:
>
> > Can anyone recommend a package that can calculate the distances between
>
> > points (either all or a defined sample of) for x,y point locations
> listed
>
> > in long format
t;- data[data$V3 >0,] #remove the distance to self
>
>
> hope this solves it.
>
> Kami
>
>
> Jim Bouldin wrote:
> > Last message got truncated somehow. To repeat, I forgot to mention that
> I
> > need to get the distances into the following format. Usin
Last message got truncated somehow. To repeat, I forgot to mention that I
need to get the distances into the following format. Using Dylan's example
above:
Point Pair Distance
1-2 3.6
1-3 6.4
1-4 9.2
. .
. .
3-4 .
> Sure. How about the function dist():
>
> d <- data.frame(x=sample(1:10, 5), y=sample(1:10, 5))
>
> dist(d)
> 1234
> 2 3.605551
> 3 6.403124 7.071068
> 4 9.219544 7.211103 5.830952
> 5 8.062258 5.099020 7.211
Good grief, yes dist() will do quite nicely. Pardon the more or less
continuous brain lock while I learn R. Thanks.
Jim
> On Monday 10 August 2009, Jim Bouldin wrote:
> > Can anyone recommend a package that can calculate the distances between
> > points (either all or a defined
Can anyone recommend a package that can calculate the distances between
points (either all or a defined sample of) for x,y point locations listed
in long format? Thanks in advance.
Jim Bouldin, PhD
Research Ecologist
Department of Plant Sciences, UC Davis
Davis CA, 95616
530-554-1740
I cannot seem to find any packages/functions that take spatial
autocorrelation into account , by whatever method, when performing
statistical tests. Any pointers appreciated. Thanks
Jim Bouldin, PhD
Research Ecologist
Department of Plant Sciences, UC Davis
Davis CA, 95616
530-554-1740
Roger, thank you for your reply to my post--that is very much along the
lines of what I am looking for.
I cannot seem to figure out how to reply to messages properly in thresds,
so I am copying and pasting into my email program, but surely there is a
simpler way? Thanks.
Jim Bouldin
se points.
Jim
Hi Jim,
What are the nature of the attributes of the items, are they simply
actually distances from one another, or is their some other measures of
similarity/dissimilarity (say differences in soil types)?
Dan Putler
On Tue, 2008-10-28 at 13:35 -0700, Jim Bouldin wrote:
> I
cally correct term for what I have just described, but I don't know
it. Thanks.
Jim Bouldin, PhD
Associate in Agricultural Experiment Station
Department of Plant Sciences, UC Davis
Davis CA, 95616
530-554-1740
___
R-sig-Geo mailing list
10 matches
Mail list logo