Question: Write an R script for parts ( a ) , ( b ) and ( c ) . ( see next page ) Run the
Write an R script for parts ab and csee next page Run the script and hand in your R execution results.
Include the R commands in your HW R script file submitted in canvas.
Page
Math Homework: Module
a Create a matrix A with rows, columns, and all entries equal
b Reassign the first column of A so that the entry in the kth row and first column is: k
That is the row k column entry of A is reassigned to k for k c Using a for loop, reassign the entries of the second column of A as follows:
For odd k reassign row k column of A as: k
For even k reassign row k column
This is the log with base e exp You may want to use $value at the end of the line.
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
