R/days_to_years.R

days_to_years <- function(days) {

    UseMethod("days_to_years")
}

days_to_years.numeric <- function(days) {
    days / 365.25
    ## mean(c(365,365,365,366))
    
}

Try the yapomif package in your browser

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

yapomif documentation built on May 2, 2019, 4:51 p.m.