Question: # Q7. ( 32 points) Create two vectors with data are shown below, # i) One vector has 3 numbers shown on column 1 and

# Q7. ( 32 points) Create two vectors with data are shown below, #

i) One vector has 3 numbers shown on column 1 and ##

ii) the other has 6 numbers shown column 2:3;

# iii) name the columns with c() and "CO1", "CO2", and "CO3"; #

iv) name the row names with c() and "RO1", "RO2", "RO3"; # and

v) create a 3x3x2 array with the vectors and #

vi) save this to "MyResult" object; #

vii) with the list(), creat "dimnames" object with the names you create; #

viii) print the "MyResult" shown below. # Output: # , , MatrixA # CO1 CO2 CO3 # RO1 5 2 8 # RO2 7 4 9 # RO3 3 6 61 # # , , MatrixB # CO1 CO2 CO3 # RO1 5 2 8 # RO2 7 4 9 # RO3 3 6 61

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!