Examveda

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

A. [,1] [,2] [,3]
[1,] 1 3 5

B. [,1] [,2] [,3]
[1,] 2 3 5

C. [,1] [,2] [,3]
[1,] 1 2 5

D. Error

Answer: Option A


This Question Belongs to R Programming >> Data Structures In R Programming

Join The Discussion

Related Questions on Data Structures in R Programming