Homework 9: Using dplyr

Overview

Read through the R script I have provided: hw09-dplyr.R. This code reads in data from two separate csv files. BBNP_transects_2011.csv and BBNP_species.csv These data were collected by my Ecological Strategies of Plants class in 2011. The full data set is available at https://github.com/schwilklab/BBNP20102011Data and these data were published in Waring and Schwilk 2014. Here are some metadata describing these files:

BBNP_species.csv

Variable name Variable definition
species Species binomial.
family Family
gf Growth form of species
longcode Six letter code for species, first three letters of genus and first 3 letters of species name
spcode Five letter code identifying species. Lowercase with parentheses indicates morphospecies not identified
   

BBNP_transects_2011.csv

Variable name Variable definition Units
site Code for the site where data was collected text
spcode full names in BBNP_species.csv text
ttrans Transect number; not repeated between years number
team Initials of individuals who collected data text
start Position where the canopy started intersecting the transect m
stop Where the canopy of a plant stopped intersecting the transect m
dieback The visually estimated precentage of canopy dieback percent

Instructions

The instructions are at the top of the R script. In short: Read the code and make sure you understand each step. Then write code to complete the tasks I've indicated in comments at the end of the file. Send me the completed script.

Back to top | E-mail Schwilk