fetch_ins_outs_v1: Split data into different pieces of activity for SNB data...

View source: R/A_EVENTS_elements_v1.R

fetch_ins_outs_v1R Documentation

Split data into different pieces of activity for SNB data version v1

Description

This function fetches individual in and out events based on a time threshold and transponder readings. If two transponder readings occur close in time, the rows in between are removed, because it is unclear to which individual this data belongs, and the information about the direction of the movement is marked as "unclear".

Usage

fetch_ins_outs_v1(x, time_threshold)

Arguments

time_threshold

Time in seconds. If the time difference between two consecutive lines is larger or equal to time_threshold, the rows will be treated as independent pieces of activity. Defaults to 2.

Details

See events_v1 for further information.

Examples

#Not run
#see help of function events_v1
?events_v1()

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