My apologies for cross-posting and for failing to reply to r-help. I'll get the hang of it.
This code seems to be getting me quite close, but I've encountered the following error. Error in compute(dat, depths, fish, zoop) : attempt to apply non-function -- View this message in context: http://r.789695.n4.nabble.com/Calculating-an-index-of-colocation-for-a-large-dataset-tp4670084p4670325.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.