Skip to contents

Scraps the site https://www.timeanddate.com to retrieve moon phases data.

Usage

get_moon_phases(year)

Arguments

year

either an integer or a character of length 1. Must have 4 characters (e.g. '2024' and not '24'). Default is the current year.

Value

A data.frame with the following columns:

  • new_moon: the date of new moons (YYYY-MM-DD),

  • first_quarter: the date of first quarters (YYYY-MM-DD),

  • full_moon: the date of full moons (YYYY-MM-DD),

  • third_quarter: the date of third quarters (YYYY-MM-DD).

Examples

if (FALSE) {
## Get moon phases for 2024 ----
get_moon_phases(2024)
}