#' Method to get cardinality
#'
#' Method for getting the cardinality of an AbstractVariable
#' @param variable AbstractVariable to inspect
# get_cardinality()
setGeneric("get_cardinality", function(variable) standardGeneric("get_cardinality"))
setMethod("get_cardinality", signature("AbstractVariable"), function(variable)
{
if (class(variable) == "Time") {
var <- variable@variable
var@cardinality
} else {
variable@cardinality
}
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.