# Title: day 4 - vector and matrix 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. Create a vector v with the following elements: 3, 5 , 7 , 9 , 10 , 133 #2. Print second, third, and fifth element #3. Get all elements which is larger than 8 #4. Create a 2*3 matrix m based on the previous vector v. # Matrix m is | 3 7 10 | # | 5 9 133 | #5. Print first row of matrix m #6. Print second column of matrix m #7. Create data frame l with the same elements to v, assign name c1, c2, c3 to each column # data frame l is c1 c2 c3 # | 3 7 10 | # | 5 9 133 | #8. Print the column of l whose name is c2 #9. Create vector v2 with: 3, NA, 4, 5 #10. Removing all missing values in v2