Last answered:

08 Dec 2021

Posted on:

08 Dec 2021

0

Can you think of a way to make adding a row to the matrix worthwhile?

Hi! I'm not sure I can find the answer to this question: "Can you think of a way to make adding a row to the matrix worthwhile?" Thanks in advance for your help.

1 answers ( 0 marked as helpful)
Posted on:

08 Dec 2021

0

There is no real need to add a new row to the matrix as it is. If we want to add new information, it would surely belong in a new column.

So, what we can do, if we really want to use the rbind() function, is to transpose the matrix, include a new row (with the new
information) and transpose it back.

This way, you will have effectively added a column, but by using the rbind() command.

Submit an answer