What will be the output of the following R code? [code] > x <- matrix(1:6, 2, 3) > x[1, , drop = FALSE] [/code]

What will be the output of the following R code?
Code:
> x <- matrix(1:6, 2, 3)
> x[1, , drop = FALSE]
A.
Code:
[,1] [,2] [,3]
[1,] 1 3 5
B.
Code:
[,1] [,2] [,3]
[1,] 2 3 5
C.
Code:
[,1] [,2] [,3]
[1,] 1 2 5
D. Error
 

Tìm kiếm

Back
Top