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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started