Question: . Write a short R function called missingMaxMin that accepts two paramters: a. b. A vector of numbers called InputNumbers, some of which may

. Write a short R function called missingMaxMin that accepts two paramters:

. Write a short R function called missingMaxMin that accepts two paramters: a. b. A vector of numbers called InputNumbers, some of which may be missing (i.e. NA) An indicator variable MaxMin which has a value of either 1 or 2 i. If MaxMin is 1, missing values in InputNumbers are replaced with the maximum value in InputNumbers ii. If MaxMin is 2, missing values in inputNumbers are replaced with the minimum value in InputNumbers So for instance x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the R function missingMax... View full answer

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 Operating System Questions!