total_diff_days: The function below determines the total days difference.

View source: R/summ-residence_index.r

total_diff_daysR Documentation

The function below determines the total days difference.

Description

The difference is determined by the minimal first_detection of every detection and the maximum last_detection of every detection. Both are converted into a datetime then subtracted to get a timedelta. The timedelta is converted to seconds and divided by the number of seconds in a day (86400). The function returns a floating point number of days (i.e. 503.76834).

Usage

total_diff_days(detections)

Arguments

detections

- data frame pulled from the compressed detections CSV


jsta/glatos documentation built on July 11, 2022, 7:01 a.m.