Learn R Programming

calcal (version 1.0.0)

lunar_phase: Lunar phase at date

Description

Lunar phase at date, as an angle in degrees. An angle of 0 means a new moon, 90 degrees means the first quarter, 180 means a full moon, and 270 degrees means the last quarter.

Usage

lunar_phase(date)

Value

A numeric vector of angles in degrees representing the lunar phase at the given dates.

Arguments

date

Date vector

Examples

Run this code
april2025 <- gregorian_date(2025, 4, 1:30)
lunar_phase(april2025)

Run the code above in your browser using DataLab