This is a follow-up to Shrub Volume Data Frame.
Dr. Granger is interested in studying the factors controlling the size and carbon storage of shrubs. This research is part of a larger area of research trying to understand carbon storage by plants. She has conducted a small preliminary experiment looking at the effect of three different treatments on shrub volume at four different locations. She has placed the data file on the web for you to download:
Download this into your data
folder and get familiar with the data by
importing the shrub dimensions data using read.csv()
and then:
names()
.str()
to show the structure of the data frame and its individual
columns.Print out the first few rows of the data using the function head()
.
Use dplyr
to complete the remaining tasks.
shrub_data_w_vols
that includes all of the
original data and a new column containing the volumes, and display it.