Question: please help me with this R code 3. Create two vectors, Vec1 & Vec2, of random integers which are chosen with replacement from the range

please help me with this R code please help me with this R code 3. Create two vectors, Vec1

3. Create two vectors, Vec1 \& Vec2, of random integers which are chosen with replacement from the range of 0,1,,999. The length of each vector is 100 . Set the random seed to 75 . a. Extract the values in Vec2 which are greater than 600 . Save the vector as Vec2a. b. What are the index positions in Vec2 of these values. Save the vector as Vec2b. Hint: you can use which () function for this step. c. What are the values in Vec1 which correspond to the values in Vec2 which are greater than 600 (correspond means the same index positions). Save the vector as Veclc. d. How many numbers in Vec1 are divisible by 2

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!