Matrices in R Programming

A matrix is a table of numbers. In math text, it is conventional to denote matrices with bold letters. For example, consider a matrix D of the prices of the securities on first three days of the week.

1D = 
2     64    31 
3     65    28 
4     66    35
5

This matrix is {3\*2} matrix (pronounced "3 by 2") . The number of rows is given first, followed by the number of columns. The Matrix D shows that on the first day, the bond was worth $64 and the stock was worth $31. On the second day the bond was worth $65 and the stock $28. On the third day the bond was worth $66 and the stock $35.

Continue Reading
Free Content, Requires Login

This content is free but requires you to be logged in to access.

Create a free account to access this tutorial and all other free tutorials, courses, and resources.