Question: Write a function that takes three variables a vector, a min and a max and returns the number of elements in the vector that are

Write a function that takes three variables a vector, a min and a max and returns the number of elements in the vector that are between the min and max (including the min and max).
*** HINT: Plug in XXX below to create the function.
myFunction <-function(vector, min, max)
{b <- length(XXX.1[(XXX.2>= XXX.3) & (XXX.4<= XXX.5)])
return(b)
}
Question: Select ALL correct answers.
Group of answer choices
XXX.2 is vector
XXX.1 is vector
XXX.5 is max
XXX.3 is min

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 Programming Questions!