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