Define daytime or nighttime
mf_daynight(mytime = as.POSIXct("2016-09-12", tz = "GMT"), longitude = 11.4, latitude = 47.27)
mytime | given time, POSIXct |
---|---|
latitude | given latituede, numeric |
longtitude | given longitute, numeric |
'day' or 'night', character
mf_daynight()#> Error in sunriset(crds = matrix(c(longitude, latitude), nrow = 1), mytime, direction = "sunrise", POSIXct.out = TRUE): could not find function "sunriset"