get_astronomy: A wrapper function to obtain the the astronomy data of a the...

View source: R/get_astronomy.R

get_astronomyR Documentation

A wrapper function to obtain the the astronomy data of a the desired city and date time from the weatherapi.com.

Description

A wrapper function to obtain the the astronomy data of a the desired city and date time from the weatherapi.com.

Usage

get_astronomy(city, date)

Arguments

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").

Value

A dataframe with the columns 'sunrise', 'sunset', 'moonrise', 'moonset', 'moon_phase', and 'moon_illumination'.

Examples

get_astronomy("Beijing", "2022-01-10")

evelynsugi/weatherapi documentation built on April 7, 2022, 12:43 p.m.