Nothing
#' date2decyear
#' @param w date
#' @author
#' Alan Jassby, James Cloern
#' @export
date2decyear <-
function(w) {
old_ops <- options(digits = 8)
on.exit(options(old_ops))
posx <- as.POSIXlt(w)
yr <- 1900 + posx$year
dy <- posx$yday + 0.5
yr + dy/ifelse(leapYear(yr), 366, 365)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.