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
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
Get step-by-step solutions from verified subject matter experts
