RE: “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.
Kiran Patil Asked on September 28, 2017 in R.
Add Comment
1 Answers

The command matrix[1, c(2,3)] gives The elements that are in the first row and the second and third columns. Correct

Answered on September 28, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.