computeIsDayByHour {solartime}R Documentation

computeIsDayByHour

Description

tell for each date, whether its daytime

Usage

computeIsDayByHour(date, sunriseHour = 7, 
    sunsetHour = 18, duskOffset = 0)

Arguments

date

POSIXct vector

sunriseHour

sunrise as fractional hour (0..24) (vector of length date or length 1)

sunsetHour

sunset as fractional hour (vector of length date or length 1)

duskOffset

integer scalar: time in hours after dusk for which records are still regarded as day

Value

logical vector (length(date)): true if its daytime

Author(s)

Thomas Wutzler


[Package solartime version 0.0.2 Index]