“matrix” is a 2 by 3 matrix defined in R, the command matrix[1, c(2,3)] will give you ?

Suppose “matrix” is a 2 by 3 matrix defined in R, the command matrix[1, c(2,3)] will give you

  1. An error in R.
  2. The elements that are in the first column and the second and third rows.
  3. The elements that are in the first row and the second and third columns. Correct
  4. The elements that are in the first, second, and third columns.
Asked on September 28, 2017 in R.
Add Comment