Question: I LIWUQLU hw 1: 1. Create a numeric vector with a length of 19, starting with the value of 2 and increment by 3. Name

I LIWUQLU hw 1: 1. Create a numeric vector with a length of 19, starting with the value of 2 and increment by 3. Name the object by "v.num". 2. Select the elements from the vector "v.num" which are the multiplier of 5 and print it. 3. Create a logic vector which evaluate the numeric vector "v.num\" if each element value is a multipler of 5. Name the logic vector by "v.logic" and print it. 4. Create a matrix of any values with 3 rows and 5 columns and name the object by "mat.1" 5. Select the firstr third and fifth columns in "mat.1" and store the values under the object "mat.s". 6. Compute the determinant and inverse of "mat.s". ?. Extract the diagonal values from "mat.s" to generate a diagonal matrix. 8. Change matrix "mat.1" into a dataframe and give a name for each column. 9. Create a list "stocks" including two elements: first element is a categorical vector with three stocks1 ticker. Second element is a matrix with 5 rows and 3 columns. Each column has the five days1 market close price of one stock separately. 18. Extract the second element in the list "stocks"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
