Matrices are a special type of vector in R.

So there's, they're not a spe, a different, a separate class of objects.

But they're basically vectors that have a sp,

an attribute called the di, called the dimension.

And so the dimension attribute is an integer vector of length two.

Where the first number is the number of rows the matrix, and

the second number is the number of columns.

And so, if I can create a matrix empty matrix with the matrix function, and

I can explicitly say how many rows and how many columns there are.

This is not the only way to create a matrix, but it's one way.

And so when I auto print the matrix by typing the, the object m and

hitting Enter, you'll see that it'll show me that,

first of all the matrix is full, is initialized with NA values.

There's no values in here.

And you can see that there's two rows and

three columns and they're labeled by the numbers in the brackets.

If I call the dim function on m, it'll give me the dimension attribute,

which in this case it says there are two rows and three columns,

because the first rows are number rows and the second number, sorry excuse me.

The first number is the number of rows and

the second number is the number of columns.

If I call the attributes function on m, you'll see it

returns a list where the first element is the dim element and it has the vector 2,3.

So these are all aspects of a matrix which is

a vector that has a dimension attribute to it.