Description Usage Format Examples
This data is a simulation of a survey designed to measure the difference in ecological diversity of two different communities. Each row represents a site and we have observed the abundances of 5 different species (labeled A, B, ..., E). The two community types are labeled I and II.
1 |
A data frame with 34 rows and 6 variables:
A factor denoting what community type the observation came from
The number species A observed.
The number species B observed.
The number species C observed.
The number species D observed.
The number species E observed.
1 2 3 4 5 6 7 8 9 | library(tidyverse)
library(vegan)
data('CommunitySurvey', package='dsData')
DistMatrix <- CommunitySurvey %>%
select(-Community) %>%
vegdist( )
model <- anosim(DistMatrix, CommunitySurvey$Community)
summary(model)
model$statistic
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.