R/time365toDate.R

Defines functions time365toDate

Documented in time365toDate

time365toDate <- function(x)
{
  year  <- trunc(x)
  md <- .time365md[round(1 + 365*(x%%1)), ]
  return(as.Date(paste(year, md$month, md$day, sep = '-')))
}

Try the cmrutils package in your browser

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

cmrutils documentation built on May 1, 2019, 7:59 p.m.