Data from Webpage
Download the BrainHead.csv (file/meta) data file from the class webpage into your “R Directory” and load the data into a data.frame in R. Display the str()
ucture of the data.frame to answer the following questions
- How many variables are in the data.frame.
- What are the names of the variables in the data.frame.
- How many individuals are in the data.frame.
Own Data
Record three variables (at least one quantitative and one categorical) about at least five individuals of interest to you (e.g., people you know, pets, animals, cities, countries, music, sports, etc.). Enter these data into a CSV file, load the data into a data.frame in R, and show the entire data.frame (i.e., all variables and all individuals). [Hint: Your answer can simply refer me to your “R Code and Results” subsection.]
Stacked Data
The following data are test scores for students in two sections of class.
Early 68 78 64 55 82 63 59 Late 87 92 73 83 91
Enter these data into a CSV file in stacked format (described in Section 23.1.2 or this FAQ), load the data into an object called test
in R, and show the entire data frame. [Hint: Your answer can simply refer me to your “R Code and Results” subsection.]