add_running_mean: Running mean for a Hyfe metric

Description Usage Arguments Value

View source: R/utils_add_running_mean.R

Description

Running mean for a Hyfe metric

Usage

1

Arguments

x

A numeric vector, representing the time variable (e.g., hours, days, or timestamps).

y

A numeric vector of the same length as x, representing the values to which the running mean will be applied.

window

Window size of running mean, in number of values of x to average together.

Value

A dataframe with two variables: x = the middle of the time window; y = the average value of y within that time window.


hyfe-ai/hyfer documentation built on Dec. 20, 2021, 5:53 p.m.