⚡️ Getting Started

Rolling

This function returns the computed value of a data series within a time window or a given number of values, using one of the following aggregation methods: "mean", "sum", "min", "max", or "count".

The rolling function has the following syntax:

**rolling(<variable>, <agreggation_method> , <type_of_range>, <range> , min periods = 2)**

Parameter

Description

Value

Mandatory

variable

It shows the measurements of a sensor as a time series of data points that vary over time, also known as "dots", and is identified by a variable label.

variable label

YES

aggregation_method

Function where the elements of a time series are computed to return a single summary value.

$mean$

, $sum$

, $min$

, $max$

, $count$

YES

type of range

Indicates whether a date range or a set number of elements are used to sample the time series.

$window$

or $values$

YES

range

A time window or a set of elements that will be computed by the function.

Available data ranges:

$"nT"$

: Every n minutes$"nH"$

: Every n hours$"nD"$

: Every n days,

$"nD"$

: Every n monthsYES

Min periods

Number of values needed to calculate the mobile aggregation, by default it is set in 2 which is the minimum requiered.

`min_periods = n`

, where NO

Last modified 3mo ago

Copy link