Question: use R Problem 2. (1) Create a vector of 2021 values evenly spaced between 0 and 1. (2) How many of these values are greater
Problem 2. (1) Create a vector of 2021 values evenly spaced between 0 and 1. (2) How many of these values are greater than 0.9? (Hint: you may consider the sum () function.) (3) Modify the elements greater than 0.9 to be 0.99. (4) Show (not modify) the first 10 values in your vector. (5) Show (not modify) the last 10 values in your vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
