GroupBy: GroupBy

Description Usage Arguments Value

Description

Group by operation in the input array using n.columns.key columns as group keys and n.columns.value columns as values. The data is expected to be sorted. The aggregation function determines the operation to aggregate the values.

Usage

1
2
GroupBy(arr, aggregation.function, n.columns.key = 1,
  n.columns.value = 1)

Arguments

arr

KHIVA Array with the time series.

aggregation.function

Function to be used in the aggregation. It receives an integer which indicates the function to be applied: 0 : mean, 1 : median 2 : min, 3 : max, 4 : stdev, 5 : var, default : mean

n.columns.key

Number of columns conforming the key.

n.columns.value

Number of columns conforming the value (they are expected to be consecutive to the column keys).

Value

KHIVA Array with the values of the group keys aggregated using the aggregation_function.


shapelets/khiva-r documentation built on June 10, 2019, 4:58 a.m.