Dr. Granger is interested in studying the factors controlling the size and carbon storage of shrubs. She has conducted an 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 it using read.csv()
and use dplyr
to complete the following tasks.
select
).select
).area
containing the area of the shrub, which is the length times the width (using mutate
).arrange
).filter
).,
or &
to include two conditions).|
for “or”).height
column (using !is.na
)shrub_volumes
that includes all of the original data and a new column containing the volumes (length * width * height), and display it.