Matrices Assignment Using R Markdown