powered by
expandAsMatrix(x, dim=NULL, byrow=TRUE)
dim
expandAsMatrix(1:3,c(4,3)) expandAsMatrix(1:4,c(4,3))
Run the code above in your browser using DataLab