Which of the following R code extracts the second column for the following matrix? [code] > x <- matrix(1:6, 2, 3) [/code]

Vy Bùi

New member
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]
 

Tìm kiếm

Back
Top