Question: # Construct star _ wars _ matrix box _ office < - c ( 4 6 0 . 9 9 8 , 3 1 4
# Construct starwarsmatrix
boxoffice c
region cUS "nonUS
titles cA New Hope",
"The Empire Strikes Back",
"Return of the Jedi"
starwarsmatrix matrixboxoffice,
nrow byrow TRUE,
dimnames listtitles region
# The worldwide box office figures
worldwidevector rowSumsstarwarsmatrix
# Bind the new variable worldwidevector as a column to starwarsmatrix
allwarsmatrix cbindstarwarsmatrix,worldwidevector
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
