View source: R/calculate_sunrise.R
| calculate_sunrise | R Documentation | 
calculate_sunrise uses sunriset for the calculation of
dates and times.
calculate_sunrise(latitude, longitude, start = NA, end = NA, tz = "UTC", ...)
latitude | 
 Latitude of a location.  | 
longitude | 
 Longitude of a location.  | 
start | 
 Start date, if not used, the default is the system's date.  | 
end | 
 End date, if not used, the default is the system's date.  | 
tz | 
 Time zone to conduct calculations in.  | 
... | 
 A construct to allow for absorption of additional arguments, useful when using function with purrr.  | 
Tibble.
Stuart K. Grange.
sunriset
# Get sunrise and sunset dates for London for today
calculate_sunrise(latitude = 51.5072, longitude = 0.1275)
# Or specify dates
calculate_sunrise(
  latitude = 51.5072, 
  longitude = 0.1275, 
  start = "2015-12-01", 
  end = "2015-12-31"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.