aggregate_events: Aggregate Event Data

aggregate_eventsR Documentation

Aggregate Event Data

Description

Takes the event data from a LUCA survey data object and aggregates them, either according to parts of the name, by a time interval, or by both.

Usage

aggregate_events(survey_data, substr_start = 1, substr_stop = 10, interval = 0)

Arguments

survey_data

LUCA survey data object

substr_start

First character element to be considered in the name of the event

substr_stop

Last character element to be considered in the name of the event

interval

Number of seconds for each considered interval

Details

In the first case substr_start marks the starting element of the substring of the event name that is considered as relevant and substr_stop marks the corresponding last character. In the second case interval defines the number of seconds that will be used to split the maximum module time into intervals; each interval will then be assigned the event code that lasted the longest within the given interval. As a result the event lists of all participants will be of equal length. Both variants can also be combined.

Value

A list including the aggregated event data


LucaOffice/lucar documentation built on Dec. 5, 2023, 5:14 a.m.