andSubsetIfItExists <- function(x, subset)
{
if (is.null(subset))
return(x)
x & subset
}
singleSeries <- function(data)
{
attr(data, "cohort.type") %in% c("None", "New")
}
dateVariableInWindow <- function(from, period.start, next.period.start)
{
from >= period.start & from < next.period.start
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.