Data Frames

Specific Leaf Area 2


This is a follow up to Specific Leaf Area 1.

One of your fellow students has posted a comma-delimited text file online for you to analyze. The file contains measurements from a series of wheat leaf samples (sample_id, leaf mass, and leaf area) and they need you to determine the specific leaf area (area / mass). 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 then use the $ operator to print out:

  1. The leaf area for each sample
  2. The SLA for each of the samples
[click here for output]