g.detecmidnight: Detect all midnights in a time series

View source: R/g.detecmidnight.R

g.detecmidnightR Documentation

Detect all midnights in a time series

Description

Detect all midnights in a time series

Usage

  g.detecmidnight(time,desiredtz, dayborder)

Arguments

time

Vector of timestamps, either in iso8601 or in POSIX format

desiredtz

See g.part2

dayborder

see g.analyse

Value

Output of the function is list containing the following objects:

  • firstmidnight = timestamp of first midnight

  • firstmidnighti = index of first midnight

  • lastmidnight = timestamp of last midnight

  • lastmidnighti = index of last midnight

  • midnights = timestamps of midnights

  • midnightsi = indeces of midnights

Author(s)

Vincent T van Hees <v.vanhees@accelting.com>


GGIR documentation built on Oct. 17, 2023, 1:12 a.m.