Nothing
years <- function(date=NULL) {
if ( !(class(date)[1] %in% c("Date","POSIXct","POSIXlt")) )
stop("Only Date, POSIXct and POSIXlt class dates")
UseMethod("years")
}
years.Date <- function(date) {
as.numeric(format(date, "%Y"))
}
years.POSIXct <- function(date) {
as.numeric(format(date, "%Y"))
}
years.POSIXlt <- function(date) {
date$year + 1900
}
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.