concat_events_v1: Combind ins and outs to events

View source: R/A_EVENTS_elements_v1.R

concat_events_v1R Documentation

Combind ins and outs to events

Description

This function combines individual instances at the nestbox to nestbox presence and absence data, where possible. The function aims to be conservative; it aims to combine two (or more) events only if they are extremly likely to belong together. Functions that can be used for more precise, but also less conservative data can be found elsewhere (tba).

Usage

concat_events_v1(x, max_distance)

Arguments

x

a data.frame as provided by the function assign_direction

Details

In order to avoid loops, this function defines for each direction available whether before or after this line a new event should begin. For example, "IN" and "FRONT" always start an event (break added before this line), OUT always stops an event (break added after this line). "PASSES" may be grouped together with INs and OUTs, but not with other PASSES. Events where the bird did not pass through the entrance are not considered to begin or end events per se.

Value

a data.frame ins and outs grouped together to single events, where possible.

Note

Rule definitions are marked in the code with a "###RULE###".

Author(s)

LS

See Also

events, fetch_data, remove_faulty_data, trim_data, fetch_ins_outs, assign_direction,

Examples

#see function events

mpio-be/SNB2 documentation built on Sept. 17, 2024, 4:27 p.m.