# Student name 1: # Student name 2: # Comments (e.g, known bug, questions you would like Dr. Cao to go through during class, etc): # the following pair-program is due at the beginning of next class #1.Run the following code in the R console: n <- 1000 x <- seq(1,n) sum(x) #Based on the result, what do you think the functions seq and sum do? You can use the help system. #2. Finish the following code: c1 <- "Hello World" # this is character object c2 <- "DATA 133" # this is also character object c3 <- 100 # this is numeric object # Define a new vector V12 that contains c1, c2 and c3 (Hint: use c function here) # Define a new list L12 that contains c1, c2, and c3 # Update V12 by adding a new element 100 at the end # Update the first element of V12 to "Great" # Print the output of multiplication of 10 and third element in V12 # Get the substring "Hello" from the first element of list L12 and print it out