Skip to content

FD Example 2

FD example 2
This example demonstrates what people have been asking about some: how to calculate the FD of communities that have different compositions, and see if those measures of FD correlate with a particular measure of ecosystem process (or community property).
Always use three data files as the foundation of these types of analysis. Each is created in xl, saved in xl, and saved as a comma delimited text file (extension .csv) because these are easily read into R. Get the files and R code from here. The files are:

 1. The species by trait matrix:
species.traits.xls (Excel file)
species.traits.csv (csv file)
Here, the first column contains the names of the species and the remaining columns the traits

2. The community composition matrix.
community.composition.xls (Excel file)
community.composition.csv (csv file)
Species names must correspond with those in the species by trait matrix

 3. The community by functioning matrix.
community.functioning.xls (Excel file)
community.functioning.csv (csv file)
Community identifiers must correspond with those in the community composition matrix.

You should download all of these files to a particular directory. (Actually, you really need only the csv files.)

The FD.example.2.r code shows how to calculate the FD of each community from the traits of species and see whether it looks like correlating with functioning.