# +++++++++++++++++++++++++ # +++ R BOOTCAMP UNIT 4 +++ # +++ EXERCISES +++ # +++++++++++++++++++++++++ # + AUTHOR: David Dobolyi + # +++++++++++++++++++++++++ # ---------- # Exercise 1 # ---------- # Read in the data file "ExerciseData1.txt" in R-Bootcamp-Unit4-Data.zip and store it in an object called ExDat1. Show the structure, head, and dimensions of the data to verify you imported it correctly. HINT: the correct dimensions are six rows by five columns. # ---------- # Exercise 2 # ---------- # Read in the data file "ExerciseData2.txt" in R-Bootcamp-Unit4-Data.zip and store it in an object called ExDat2. Show the structure, head, and dimensions of the data to verify you imported it correctly. HINT: make sure you have accounted for the correct separator in this data file. # ---------- # Exercise 3 # ---------- # Use the identical function (i.e., see ?identical) to show ExDat1 and ExDat2 are identical (if they are not, amend your data import code accordingly). # ---------- # Exercise 4 # ---------- # Read in the data file "ExerciseData3.txt" in R-Bootcamp-Unit4-Data.zip and store it in an object called ExDat3. Show the structure, head, and dimensions of the data to verify you imported it correctly. HINT: make sure you have accounted for the quoting characters in this data file; in addition, you may want to open the file in a text editor to see if there is something else wrong with it. # ---------- # Exercise 5 # ---------- # Use the identical function to show ExDat1 and ExDat3 are identical (if they are not, amend your data import code accordingly).