Shrub Volume Data Frame (Data Frames)
This is a follow up to Shrub Volume Vectors.
One of your collaborators has posted a comma-delimited text file online for you to analyze.
The file contains dimensions of a series of shrubs (shrubID, length, width,
height) and they need you to determine their volumes
(length * width * height
). You could do this using a spreadsheet, but the
project that you are working on is going to be generating lots of these files so
you decide to write a program to automate the process.
Download the data, use read.csv()
to import it into R, and use it to produce the following information:
- A vector of shrub lengths
- A vector of the volume of each of the shrubs
- A data frame with just the shrubID and height columns
- A data frame with the second row of the full data frame
- A data frame with the first 5 rows of the full data frame