#' @export
setMethod('typeof', signature(x="amdMatrix"),
function(x) {
switch(class(x),
"iamdMatrix" = "integer",
"famdMatrix" = "float",
"damdMatrix" = "double",
stop("unrecognized class"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.