Description Usage Arguments Value Author(s) See Also Examples
Returns a vector whose i
'th element is the cumulative mean
(arithmetic mean) of the i
'th first elements of the argument.
1 | cummean(x)
|
x |
a numeric vector. |
A vector of length length(x)
with the cumulative mean. The
i
'th entry cummean(x)[i]
equals mean(x[1:i])
.
Anders Ellern Bilgrau <anders.ellern.bilgrau@gmail.com>
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.