Question: Adding a column for the Worldwide box office In the previous exercise you calculated the vector that contained the worldwide box office receipt for each
Adding a column for the Worldwide box office
In the previous exercise you calculated the vector that contained the worldwide box office receipt for each of the three Star Wars movies. However, this vector is not yet part of starwarsmatrix.
You can add a column or multiple columns to a matrix with the cbind function, which merges matrices andor vectors together by column. For example:
bigmatrix cbindmatrix matrix vector
Instructions
Add worldwidevector as a new column to the starwarsmatrix and assign the result to allwarsmatrix. Use the cbind function.
Take Hint XP
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
