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 64andthestockwasworth64 and the stock was worth 31. On the second day the bond was worth 65andthestock65 and the stock 28. On the third day the bond was worth 66andthestock66 and the stock 35.

Create Your Free Account

Create a free account to access this content and join our community of learners.

You'll get access to:

  • Access the full tutorial
  • Join our learning community
  • Track your progress
  • Bookmark content for later