View source: R/calc_is_daytime.R
calc_is_daytime | R Documentation |
Determines if specified datetime is during the daytime Returns T/F indicating whether a datetime occurs during the daytime (sunlight hours)
calc_is_daytime(datetimes, lat)
datetimes |
Vector of dates as |
lat |
Single latitude value of site. South should be negative, north positive |
a boolean vector of same length as datetimes
Luke A. Winslow
calc_sun_rise_set
## Not run:
# Warning: this function is deprecated.
calc_is_daytime(datetimes=as.POSIXct(paste('2013-03-31', c('1:00','11:00'))), lat=40.75)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.