count {DiversitySampler} | R Documentation |
Takes a vector of species names and counts the abundance of each unique species.
count(sv = "species vector", x = "species sample vector")
sv |
A vector of species numbers or names. |
x |
A vector of species occurrences. |
This function is used within the H.sampler
function.
Returns a vector of species counts.
Matthew K. Lau
sv=1:10 x=c(1,1,1,1,1,2,3,3,5,5,5,6,7,8,9,10) cbind(sv,count(sv,x))