1. In R, you need a matrix with 2 rows and 3 columns populated from the vector `c(8, 5, 1, 4, 7, 9)`. Which command creates it with those dimensions?
matrix(c(8, 5, 1, 4, 7, 9), 2, 3)
Explanation
In `matrix(data, nrow, ncol)`, the first argument supplies the entries and the next two set the row and column counts. Reversing 2 and 3 swaps the dimensions, while the other choices misplace the arguments or do not create a matrix.