[R-sig-eco] construct a nearest neighbor contingency table

Tom Elliott tnelliott at gmail.com
Wed Jun 4 01:28:09 CEST 2008


Hello-

I have plot data of  mapped male and female cottonwoods, collected for
my master's thesis. The data are multiple rows in 3 columns:
x-coordinate, y-coordinate, and a code for male, female, or unknown. I
want to test it for spatial segregation of the sexes using methods by
Phillip Dixon (1994, 2002).

 Is there a way in R to build a nearest neighbor contingency table for
the data? I would like the format to be 3 rows (male, female,
unknown), with columns for counts of the nearest neighbors in each
class.

Thanks,
Tom

Biology Department
Central Washington University



More information about the R-sig-ecology mailing list