findChunk24: Find extended periods of light or dark

Description Usage Arguments Details Value

View source: R/BAStag.R

Description

Find intervals of darkness spanning more than 24 hours.

Usage

1
findChunk24(tagdata, threshold)

Arguments

tagdata

a dataframe with columns Date and Light that are the sequence of sample times (as POSIXct) and light levels recorded by the tag.

threshold

the light threshold that defines twilight.

Details

The findTwilights function find twilight times by searching for adjacent nights, but is unable to search beyond a period of light or dark spaaning greater than 24 hours. This function finds extended periods of light or dark that span more than 24 hours.

Value

A dataframe with one row for each intervals and columns

Start

the start of the interval as POSIXct

Start

the end of the interval as POSIXct

Midpoint

the midpoint of the interval as POSIXct


SWotherspoon/BAStag documentation built on March 29, 2021, 2:47 a.m.