timeseries_av: Reduce number of time points by averaging values of multiple...

View source: R/functions.R

timeseries_avR Documentation

Reduce number of time points by averaging values of multiple time points

Description

This function reduces the number of time points in a data frame by averaging values from multiple time points.

Usage

timeseries_av(data, window = 5)

Arguments

data

A data frame with two columns: time and value.

width

Number of time/value pairs that will be averaged into one pair.

Examples

timeseries_av(data = tibble(time = 1:100, value = rnorm(100)), window = 5)

Jonas-Wilhelm/jwtools documentation built on April 14, 2025, 4:10 a.m.