AggregateToUniqueTime: Aggregate to Unique Time

aggregateToUniqueTimeR Documentation

Aggregate to Unique Time

Description

Aggregation to Unique Time by any function

Usage

aggregateToUniqueTime(Time, DataVectorOrMatrix, Fun = sum, ...)

Arguments

Time

[1:n] vector

DataVectorOrMatrix

[1:n,1:d] matrix or dataframe, d can be also 1, then vector

Fun

aggregation function like sum

...

further arguments passed on to Fun

Details

Generalized Aggregation to Unique Time by any function defined by sum

Value

List with

Aggregation

[1:m,1:d], m<=n of DataVectorOrMatrix mapped to UniqueTime

UniqueTime

[1:m], m<=n unique elements of Time

Author(s)

Michael Thrun

Examples

##ToDo

Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.