View source: R/A_EVENTS_elements_v1.R
concat_events_v1 | R Documentation |
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).
concat_events_v1(x, max_distance)
x |
a data.frame as provided by the function assign_direction |
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.
a data.frame ins and outs grouped together to single events, where possible.
Rule definitions are marked in the code with a "###RULE###".
LS
events
, fetch_data
, remove_faulty_data
,
trim_data
, fetch_ins_outs
, assign_direction
,
#see function events
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.