findChunk24: Find extended periods of light or dark

View source: R/TwGeos.R

findChunk24R Documentation

Find extended periods of light or dark

Description

Find intervals of darkness spanning more than 24 hours.

Usage

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


slisovski/TwGeos documentation built on Jan. 27, 2024, 10:43 a.m.