Useful functions
swe_day_of_week(jd)
Julian day number as numeric vector (day)
swe_day_of_week
returns the day of week as integer vector (0 Monday .. 6 Sunday)
Determine day of week from Julian day number.
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!
swe_day_of_week(1234.567)
#> [1] 3