Which of these will successfully create a matrix?

> matrix(1:6)> matrix(1:4,nrow=1,ncol=1)

Awesome! We don't need to specify the matrix dimensions, but when we do, the number of data elements needs to match the dimensions.

Yikes! We don't need to specify the matrix dimensions, but when we do, the number of data elements needs to match the dimensions.