Question: Using R, write a function that takes in a vector of values and returns the cumulative means (similar to the cumsum() command, which you are

Using R, write a function that takes in a vector of values and returns the cumulative means (similar to the cumsum() command, which you are allowed to use in your function here). Hint: Experiment with vector addition, subtraction, division, etc before you start writing your function.

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