powered by
Create a location object. These are used for calculating the timing of astronomical events such as sunrise and sunset.
location( latitude = numeric(), longitude = numeric(), elevation = numeric(), zone = numeric() )
A location vector object
A numeric vector of latitudes
A numeric vector of longitudes
A numeric vector of elevations above sea level (in metres)
A numeric vector of time zones (in hours, relative to UTC)
melbourne <- location(-37.8136, 144.9631, 31, 10) sunrise("2025-01-01", melbourne)
Run the code above in your browser using DataLab