Here are csv files containing 3 types of data
- Daily captures of 4 animals (fields = ID, Day, Mass). Note that not all animals were captured each day
-- Mass at birth of each of the 4 animals (so 1 record per animal)
-- Daily temperatures C for each day a capture occurred
Using R:
1. Read each of these files into a data object and produce a summary table (means, quantiles, etc.) for each
2. Plot temperature over day (just use the temperature data object for now)
3. Make a histogram of birth mass . Use cutpoints (breaks) of c(0,10,15,20,35,40)
4. Sort the capture object by ID then Day
5. Merge captures with birth weights (by ID but should do this by default) and create a new data
object from this
6. Merge this new object with temperature (by Day but again should work by default) and
create a new data object that contains birth mass, daily mass, and temperature
7. Create a new column in this object called "change" that is the difference between daily mass
and birth mass
8. Create a new data object that averages daily mass change across ID for each day and plot the resulting daily average change against Day (Hint: the aggregate function in the data manipulation example code will do this very nicely)