Question: Using the r program. Write a simple function called threshold_five that takes a single numeric vector x as input. Within this function, use sapply to
Using the r program.

Write a simple function called threshold_five that takes a single numeric vector x as input. Within this function, use sapply to construct a new vector that corresponds to the elements of x and, for each x[i] , is zero if x[i]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
