Question: R assignment In the matrix() function: . The first argument is the collection of elements that R will arrange into the rows and columns of
In the matrix() function: . The first argument is the collection of elements that R will arrange into the rows and columns of the matrix. Here, we use 1:9 which is a shortcut for c(1, 2, 3, 4, 5, 6, 7, 8, 9) e The argument byrow indicates that the matrix is filled by the rows. If we want the matrix to be filled by the columns, we just place byrow FALSE. . The third argument nrow indicates that the matrix should have three rows. INSTRUCTIONS 100 XP Construct a matrix with 3 rows containing the numbers 1 up to 9, filled row-wise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
