DateDifference <-
function (CharDateBegin, CharDateEnd, date.format = "MM/DD/YYYY")
{
the.julianBegin <- as.POSIXct(CharDateBegin)
the.julianEnd <- as.POSIXct(CharDateEnd)
as.numeric(the.julianEnd - the.julianBegin + 1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.