Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribedcan 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 argument

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions