Useful functions

swe_day_of_week(jd)

Arguments

jd

Julian day number as numeric vector (day)

Value

swe_day_of_week returns the day of week as integer vector (0 Monday .. 6 Sunday)

Details

swe_day_of_week()

Determine day of week from Julian day number.

See also

Section 16.7 in http://www.astro.com/swisseph/swephprg.htm. Remember that array indices start in R at 1, while in C they start at 0!

Examples

swe_day_of_week(1234.567)
#> [1] 3