julian {event.chart}R Documentation

Julian

Description

Convert between Calendar Dates and Julian.

Usage

julian(m, d, y, origin=c(month=1, day=1, year=1960))

Arguments

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).

Details

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.

Value

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.