aggregate_events | R Documentation |
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.
aggregate_events(survey_data, substr_start = 1, substr_stop = 10, interval = 0)
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 |
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.
A list including the aggregated event data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.