Description Usage Arguments Value Author(s)
View source: R/utilSolarTime.R
tell for each date, whether its daytime
1 2 | computeIsDayByHour(date, sunriseHour = 7,
sunsetHour = 18, duskOffset = 0)
|
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 |
logical vector (length(date)): true if its daytime
Thomas Wutzler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.