Create the following 2 matrices utilizing the special form of the matrix - meaning that your solution should be generalized to creating a larger table with the same structure, without requiring to type all the entries within the table. Hint: You will find the row() and col() functions useful.
All I've done for now is this:
>i=0:5
>matrix(i,nrow=i,ncol=i)
but it is not complete. You have to somehow utilize the functions row() and col().