Learn R Programming

astronomyengine (version 0.1.0)

astro_moon_phase: Moon Phase Angle

Description

Returns the Moon's phase as an angle from 0 to 360 degrees, where 0 is new moon, 90 is first quarter, 180 is full moon, and 270 is third quarter.

Usage

astro_moon_phase(time)

Value

A numeric value representing the Moon's phase angle in degrees (0-360).

Arguments

time

A POSIXct datetime representing the observation time.

Examples

Run this code
astro_moon_phase(as.POSIXct("2025-02-19 12:00:00", tz = "UTC"))

Run the code above in your browser using DataLab