Question: 2. Using R, create a matric C: i. ii. iii. iv. V. 1 2 3 4 C 5 6 7 8 19 10 11 12.

2. Using R, create a matric C: i. ii. iii. iv. V. 1 2 3 4 C 5 6 7 8 19 10 11 12. Using the matrix() function Using the cbind function Using the rbind function [1 marks] Use an appropriate function (other than matrix()) to create a new matrix, D, which is the same as matrix C but with an additional row containing the elements 13, 14, 15, 16. [1 marks] Use indexing on the matrix C to display: a. The 3rd row b. C. [4 marks] The element 7 All the elements smaller than 7 [1 marks] [1 marks] [1 mark] [1 mark] [1 mark]

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!