Dr. Morales has conducted an experiment looking at the effect of three different treatments on shrub volume at four different sites. In addition to the main data table on shrub dimensions, Dr. Morales has two additional data tables. The first describes the manipulation for each experiment. The second provides information about the different sites.
If the files shrub-volume-data.csv
, shrub-volume-experiments.csv
, and shrub-volume-sites.csv
aren’t in your work space download them. Import all three files.
- Use
inner_join
to combine the experiments data with the shrub dimensions data (from shrub-volume-data.csv
) to add a manipulation
column to the shrub dimensions data.
- Combine the sites data with both the shrub dimensions data and the experiments data to produce a single data frame that contains all of the data.