julian {event.chart} | R Documentation |
Convert between Calendar Dates and Julian.
julian(m, d, y, origin=c(month=1, day=1, year=1960))
m |
vector of month numbers. |
d |
vector of day numbers. |
y |
vector of years |
origin |
vector specifying the origin as month, day, and year. If missing, it defaults to options(chron.origin) if this is non-null, otherwise c(month=1, day=1, year=1960). |
This function was taken from Becker, Chambers, and Wilks (1988), and was slightly modified to take dates objects; some also take the extra argument origin.
For each date, the function return the number of days between it and January 1, 1960. The date will be missing if the string is not interpretable.