Show your R work (both your input and your output) for each question below. You may find this FAQ useful.

Own Data

Create an R data frame (by first creating a CSV file) that contains the first name, age (you can guess), and relationship to you (e.g., “Father”, “Friend”, “Partner”) for four or five members of your family or close friends. In R, show the entire data frame and the structure of the data frame. [Hint: Your answer can simply refer me to your “R Code and Results” subsection.]


Data From Webpage

Load fire.csv (data, meta) into an R data frame called firedf. Show the structure of the data frame and the first three and last three rows of the data frame. Answer the following questions.

  1. How many variables are in the data frame?
  2. How many individuals are in the data frame?