# by default matrix is filled by column
example_matrix = matrix(data=1:5, nrow=10, ncol=5)
#example_matrix
#class(example_matrix)


matrix_1 = matrix(data=(1:6), nrow = 2, ncol = 3, byrow=TRUE)
matrix_2 = matrix(data=(7:12), nrow = 3, ncol = 2, byrow = TRUE)

# dot product of matrices its not a multiplication
matrix_1%*%matrix_2

# to check the documentation for the matrix
?example_matrix

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: