I would like to calculate the overlap between the distributions of two sets of data (predator & prey). The prey set has got about 250 species, the predator set approximately 5000. For each species I have a shape file in .shp format. Has anyone got any suggestions how to calculate the overlap between the pairs?

In the past I've used the function 'pairwiseRangemaps' of the fuzzySim package, but it calculates the overlap between EACH pair (so > 27 million comparisons for a 5250 x 5250 matrix), making it impossible to run on any normal computer (even splitting the data set in dozens of smaller files and taking out the upper triangle would take weeks or months). I'm not interested in the overlap between prey species or between predator species, just between each prey and each predator.

Has anyone got a suggestion how to calculate this in R? I'm thinking of two vectors (one prey, one predator) and then calculating the overlap between just these.

More Chris Broeckhoven's questions See All
Similar questions and discussions