diversity
, fisher.alpha
, specpool
and specnumber
(all from diversityresult(x,y="",factor,level,index="Shannon",method="all",sortit=F,
digits=8)
diversitycomp(x,y="",factor1,factor2="",index="Shannon",
method="all",sortit=F,...)
diversityresult
.diversitycomp
, the number of sites is provided as "n".diversity
, fisher.alpha
, specpool
, estimateR
and specnumber
(all from diversityresult
and diversitycomp
allow to calculate diversity statistics for subsets of the community and environmental data sets. Function diversityresult
calculates the diversity statistics for the specified level of a selected environmental variable. Function diversitycomp
calculates the diversity statistics for all levels of a selected environmental variable separatedly. When a second environmental variable is provided, function diversitycomp
calculates diversity statistics as a crosstabulation of both variables.library(vegan)
data(dune.env)
data(dune)
Diversity.1 <- diversityresult(dune, y=dune.env, factor='Management',
level='NM', index='Shannon' ,method='s', sortit=TRUE, digits=3)
Diversity.1
diversitycomp(dune, y=dune.env, factor1='Management', factor2="Moisture",
index='Shannon' ,method='all', sortit=TRUE, digits=3)
Run the code above in your browser using DataLab