Show your R work (both your input and your output) for each question below. You may find Section 22.1 in the reading useful.

Examining Single Variables

Load Fire.csv into an R data frame called firedf (and examine its structure). [Note: You did this in the Getting Data into R class example … just copy your code from that script.]

  1. Examine the stand type (i.e., sttype) variable.
  2. Examine the litter depth (i.e., litdep) variable.


Filtering Data Frames

For each question below indicate the number of individuals in the resultant data.frame. Make sure to show the resultant data.frame in your R Code and Results section.

  1. Isolate just the deciduous stand types.
  2. Isolate the stands with a litter depth less than 2 cm.
  3. Isolate the stand types that are either coniferous or mixed-coniferous.
  4. Isolate stands that were coniferous (not including mixed-coniferous) and had a litter depth greater than 2 cm.
  5. Isolate all stands that had a litter depth between 1 and 1.5 cm.