<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>Greetings</DIV><DIV>I'm using R 2.8 with recent (last month) versions of the packages I need to use at present.</DIV><DIV>&nbsp;</DIV><DIV>I'm interested in examining hierarchical spatio-temporal patterns in a data set.&nbsp;&nbsp;The data consist of 94 points (X, Y, UTM coordinates) at which catch rates for a fish were recorded and there are also estimates of prey available for these fish at the same locations.&nbsp; I have reason to believe that the relationships between predators and prey varies with spatial scale (nested processes).</DIV><DIV>&nbsp;</DIV><DIV>To test this hypothesis, I'd like&nbsp;to generate subsets of the points that are separated by distance ranges (1-50 km, 51-100 km, etc) so I can run Sncf (package ncf) on the subsets.</DIV><DIV>&nbsp;</DIV><DIV>I cannot find a way to do this with R code.&nbsp; Getting a distance matrix is easy.&nbsp;&nbsp;Using that to help generate&nbsp;a series of distance-based subsets is something I cannot figure out (without manually entering a list of all the point pairs).</DIV><DIV>&nbsp;</DIV><DIV>Any suggestions would be appreciated.</DIV><DIV>Dave Warner&nbsp;<BR></DIV><DIV>David&nbsp;Warner<BR>Research&nbsp;Fishery&nbsp;Biologist<BR>USGS&nbsp;Great&nbsp;Lakes&nbsp;Science&nbsp;Center<BR>1451&nbsp;Green&nbsp;Road<BR>Ann&nbsp;Arbor&nbsp;MI&nbsp;48105<BR>734.214.9392<BR></DIV></FONT>