R/ym2time.R

Defines functions ym2time

Documented in ym2time

# Verified 1.3.18
ym2time <-
function(e) {
        if (length(e) != 2) { 
                stop("Wrong size: must be vector of length two, c(year, month).")
        }
        return( tis::jul(e[1] + ((e[2]-1)/12)) )  
}

Try the vetools package in your browser

Any scripts or data that you put into this service are public.

vetools documentation built on May 2, 2019, 10:15 a.m.