Question: use R as the coding language 3: my_cumfun Write a function called my_cumfun () that computes the cumulative fun of a numeric vector x. The
use R as the coding language

3: my_cumfun Write a function called my_cumfun () that computes the cumulative fun of a numeric vector x. The out- put of my_cumfun (x, sum) , my_cumfun (x, prod) , my_cumfun (x, max) , my_cumfun (x, min) should be identical to the output of cumsum (x) , cumprod (x) , cummax (x), cummin (x) respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
