| rao | R Documentation | 
Calculate Rao diversity of a vector
rao(x, dist)
x | 
 Vector of counts or proportions of N elements  | 
dist | 
 Distance matrix of NxN elements  | 
Rao diversity rao(1:3,as.matrix(dist(1:3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.