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

use R as the coding language 3: my_cumfun Write a function called

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

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