Learn R Programming

LifeInsureR (version 1.0.0)

rollingmean: Calculate the rolling mean of length 2

Description

Calculate the rolling mean of length 2

Usage

rollingmean(x)

Arguments

x

vector of values, for which the rolling mean is calculated

Examples

Run this code
rollingmean(1:10)

Run the code above in your browser using DataLab