I'm trying to figure out how to write a r function that will calculate the extreme spread of a group of points given their (x,y) coordinates. Extreme Spread is the maximal Euclidean distance between two points in a group

ex.spread = max{ sqrt [ (xi-xj)^2 - (yi-yj)^2 ] } for i not equal to j

I have 60 levels to apply this to.

There is the combination function in the dprep package but I wasn't sure how to use this or apply an index the points in each group.

Any ideas?



Steve





Steven Matthew Anderson
[EMAIL PROTECTED]

Ad Astra per Aspera

______________________________________________
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