Instructions

Answer the following questions and/or complete the exercises in RMarkdown. Please embed all of your code and push the final work to your repository. Your report should be organized, clean, and run free from errors. Remember, you must remove the # for any included code chunks to run.

Load the tidyverse

library("tidyverse")
library("janitor")

Data

For this assignment, we will use data from a study on vertebrate community composition and impacts from defaunation in Gabon, Africa. One thing to notice is that the data include 24 separate transects. Each transect represents a path through different forest management areas.

Reference: Koerner SE, Poulsen JR, Blanchard EJ, Okouyi J, Clark CJ. Vertebrate community composition and diversity declines along a defaunation gradient radiating from rural villages in Gabon. Journal of Applied Ecology. 2016. A description of the variables is included inside the data folder.

1. Load IvindoData_DryadVersion.csv and store it as a new object called gabon.

2. Use one or more of the summary functions you have learned to get an idea of the structure of the data.

3. Clean the data as necessary following the conventions from lab 6.

4. Use mutate() Change the variables HuntCat, LandUse, and TransectID to factors. Be sure to store the output as a new dataframe and use it for the remaining questions.

5. Make a plot that shows the number of transects for each land use type.

6. How does vegetation richness compare among land use types?

7. For which land use type (national parks, logging, or neither) is average all species diversity the greatest?

8. Is there a relationship between vegetation richness and mammal species richness?

9. Use filter to find all transects that have greater than 15 tree species or a breast height diameter between 50 and 60cm.

10.Which transects and land use types have more than 10 tree species and 10 mammal species? Use arrange() to sort by the number of tree species.

Knit and Upload

Please knit your work as an .html file and upload to Canvas. Homework is due before the start of the next lab. No late work is accepted. Make sure to use the formatting conventions of RMarkdown to make your report neat and clean!