View source: R/get_astronomy.R
get_astronomy | R Documentation |
A wrapper function to obtain the the astronomy data of a the desired city and date time from the weatherapi.com.
get_astronomy(city, date)
city |
A string indicating city (e.g., "London", "Beijing"). |
date |
A string of the form yyyy-mm-dd indicating date (e.g., "2022-02-10"). |
A dataframe with the columns 'sunrise', 'sunset', 'moonrise', 'moonset', 'moon_phase', and 'moon_illumination'.
get_astronomy("Beijing", "2022-01-10")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.