tvec_to_dayvec: Annotate time with day or night

View source: R/tvec_to_dayvec.R

tvec_to_dayvecR Documentation

Annotate time with day or night

Description

Converts a vector of POSIXct or POSIXt into day or night

Usage

tvec_to_dayvec(
  posix_time,
  daystart = times("07:00:01"),
  nightstart = times("19:00:00")
)

Arguments

posix_time

vector of times given in POSIXct or POSIXt format

daystart

time when the light phase starts

nightstart

time when the dark phase starts

Value

vector of day or night

Examples

## Not run: 
  test = tvec_to_dayvec(asdfsadf)

## End(Not run)

DJFernandes/ezHCA documentation built on June 12, 2025, 12:01 p.m.