R/time365fromDate.R

Defines functions time365fromDate

Documented in time365fromDate

time365fromDate <- function(x)
{
  myd <- month.day.year(x)
  cycle <- match(with(myd, paste(month, day)),
                 with(.time365md, paste(month, day)))
  return(myd$year + (cycle - 1)/365)
}
aparamon/cmrutils documentation built on May 5, 2019, 6:54 p.m.