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

 use R Problem 2. (1) Create a vector of 2021 values
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 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

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!