# The example of mandible length of male and female
# golden jackals from Manly (1997), p.4.
males<-c(120, 107, 110, 116, 114, 111, 113, 117, 114, 112)
females<-c(110, 111, 107, 108, 110, 105, 107, 106, 111, 111)
c2m(pop1=males,pop2=females,nrandom=99)
# Maximum temperature in a set of sites where the beetle Tomicus destruens
# or T. piniperda are present. Both species are present at 4 sites.
data(Tomicus)
c2m(pop1=Tomicus$destruens,pop2=Tomicus$piniperda,
pop3=Tomicus$both, nrandom=99)
# using c2m with outputs of rich
a<-matrix(data=rpois(100,2), ncol=10, nrow=10)
b<-matrix(data=rpois(100,0.5), ncol=10, nrow=10)
x<-rich(matrix(data=rpois(30,2), ncol=5, nrow=6),
nrandom=50,verbose=TRUE)
y<-rich(matrix(data=rpois(30,0.5), ncol=5, nrow=6),
nrandom=50,verbose=TRUE)
c2m(pop1=x$sumrow,pop2=y$sumrow,
nrandom=100,verbose=FALSE)
Run the code above in your browser using DataLab