Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can you help me finish this in R please Create a vector v= V1, ... , V13 where v; = 1 7 in general. However,
can you help me finish this in R please
Create a vector v= V1, ... , V13 where v; = 1 7 in general. However, if v; is then a multiple of 3, please replace its value with NA. Then add the names 'odd', 'even', 'missing' based on whether the corresponding elements is odd, even or missing. To check your answer: The output of print(v[1:3]) is missing NA odd -5 even -4 Assign the mean of v to a variable v4, ignoring the NA when computing the mean. Hint: look at the function mean and its na.rm argumentStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started