Re: [R] help on Nan error

2009-05-15 Thread Richard . Cotton
> When i want to do ANOSIM i get an NaN error message. What is wrong? > > (lots of other code) > > iwithin=rep(0,(N*(N-1)/2) ) > > r.w=sum(r*iwithin)/sum(iwithin) iwithin is a vector of zeroes and so is its sum. r*iwithin is also a vector of zeroes, and so is its sum. Thus r.w=sum(r*iwithin)/su

[R] help on Nan error

2009-05-14 Thread Umapathy Ananthanarayanan
Hi guys My data is Tasmania txt There are *N *= 16 samples, consisting of 8 replicate cores (taken from different areas across the sandflat) from each of 2 natural 'treatments' (either disturbed "D" or undisturbed "U" by soldier crab burrowing activity. The abundances of each of *p *= 56 species