V Vy Bùi New member Sep 20, 2021 #1 Which of the following R code extracts the second column for the following matrix? Code: > x <- matrix(1:6, 2, 3) A. x[2, ] B. x[1, 2] C. x[, 2] D. x[1 1 2]
Which of the following R code extracts the second column for the following matrix? Code: > x <- matrix(1:6, 2, 3) A. x[2, ] B. x[1, 2] C. x[, 2] D. x[1 1 2]
Đ Đỗ Chí Hải New member Sep 20, 2021 #2 Answer: c Explanation: This behavior is used to access entire rows or columns of a matrix. Upvote 0 Downvote