CommunitySurvey: A simulated survey of comparing the species make-up of two...

Description Usage Format Examples

Description

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.

Usage

1

Format

A data frame with 34 rows and 6 variables:

Community

A factor denoting what community type the observation came from

A

The number species A observed.

B

The number species B observed.

C

The number species C observed.

D

The number species D observed.

E

The number species E observed.

Examples

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

dereksonderegger/dsData documentation built on Nov. 22, 2020, 5:15 p.m.