1

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

Correct Answer: x[, 2]

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: Which of the following R code extracts the second column for the following matrix? > x <- matrix(1:6, 2, 3) | Extra Education