Skip to content
Prev 2706 / 7420 Next

singletons and doubletons in vegan

On 01/02/2012, at 14:34 PM, Canning-Clode, Joao wrote:

            
What information do you need? If you want to know the names of singleton and doubleton *occurrences* on plots, you can use (with the BCI data in vegan):

freq <- colSums(BCI>0)
which(freq==1)
which(freq==2)

If you want to something similar for counts (individuals), you just change the command to find the 'freq'.

If you want to know how many singleton and doubleton species you have in each of your sampling units, you can use

rowSums(BCI[, freq==1] > 0)
rowSums(BCI[, freq==2] > 0)

If you want to know how may species have exactly one individual (stem) in a sampling unit, just use

rowSums(BCI==1)

Was the information you asked among these things, or do you want to have something more?

Cheers, Jari Oksanen