Calculate times of sunrise and sunset depending on the location and the date.
sun_times(loc, date, tz, angle = 6, interval = "none", type = "riseset")
loc | Vector/Data frame. Longitude and Latitude coordinates for location of sun rise/set |
---|---|
date | Vector. Date(s) to calculate sun rise/set for. |
tz | Timezone of the dates. |
angle | Numeric. For type = "riseset" the angle of the sun (6 = civil twilight) |
interval | Character. How to organize the sunrise/sunset times |
type | Character. What kind of sunrise/sunset to calculate |