mt.aggregate: Aggregate trajectories

Description Usage Arguments Value Examples

Description

Aggregates trajectories according to a factorial design based on specified variables.

Usage

1
mt.aggregate(data, i.aggr, i.xyt)

Arguments

data

n x m - matrix with n measurements and m variables

i.aggr

Vector of column names of the variables used for aggregation (if there is more than one variable the data is aggregated for each cell of the factorial design)

i.xyt

Column names of columns containing x,y and time (in that order)

Value

Returns a matrix with ....

Examples

1
2
3
4
5
6
7
head(dataprocessed) #example dataset

data.aggregated <- mt.aggregate(data = dataprocessed, 
                                i.aggr=c("group"), 
                                i.xyt=c("x", "y", "t"))
                                
head(data.aggregated)                    

jmbh/mt.analysis documentation built on May 19, 2019, 1:51 p.m.