Learn R Programming

emoji (version 15.0)

day_in_synodic_cycle: Calculate the number of days in the synodic month

Description

This uses the approximation described in the lunar phase wikipedia page, i.e. the number of days since 1900/01/01 modulo the length of a synodic month (29.530588853 days)

Usage

day_in_synodic_cycle(date)

Arguments

date

a date

Examples

Run this code
day_in_synodic_cycle(Sys.Date())

Run the code above in your browser using DataLab