# Title: Day 5 - Read and write data in R # Student name 1: # Student name 2: # Comments (e.g, known bugs, questions you would like Dr. Cao to go through in the class, etc): #1. Download "DATA133_example1.csv" from course website, and use read.table function to read all contents to variable "data1". #2. Load all contents of "DATA133_example1.csv" by reading from url directly (url and readLines function), and assign it to variable 'data2'. The link for the file is: https://www.cs.plu.edu/~caora/ds133/Materials/spring2019/Code/day5/DATA133_example1.csv #3. Check the class type for variable data1 and data2, are they the same? #4. Get the first 20 rows from 'data1', and assign it to variable 'mydata' #5. Use write.table to write 'mydata' to a file named 'TemData.R' #6. Use read.table to read 'TemData.R' to variable 'mydata2', and compare 'mydata' with 'mydata2', are they the same? #7. Repeat step 5 and 6, but use dput and dget, are they the same as read.table and write.table? #8. Repeat step 5 and 6, but use dump and source function, think about the difference.