1

In R, how is a matrix initialized with values 1 to 9 arranged in three rows?

Correct Answer: matrix(1:9, nrow = 3, ncol = 3)

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: In R, how is a matrix initialized with values 1 to 9 arranged in three rows? | Extra Education