filter_data: Function to filter trajectories based on movement and...

Description Usage Arguments Value

View source: R/Filter_data.R

Description

The function creates a dataframe containing all trajectories that are valid for further analysis by selecting on minimum net displacement, detection rate, trajectory length and the median step_length

Usage

1
2
filter_data(raw_data, net_filter, duration_filter, detect_filter,
  median_step_filter)

Arguments

raw_data

dataframe containing the rawdata: X- and Y-coordinates, frame, file and trajectory name, morphology and movement metrics

net_filter

minimum net displacement to be considered a valid trajectory (in the length scale specified)

duration_filter

minimum duration to be considered a valid trajectory (in seconds)

detect_filter

minimum detection rate to be considered a valid trajectory (a proportion between 0 and 1)

median_step_filter

threshold such that half of the step lengths are above the specified value

Value

returns a dataset with all fixes of valid trajectories


pennekampster/bemovi documentation built on May 25, 2019, 12:46 a.m.