is_numeric <- function(x) {
is_integer(x) || is_double(x)
}
is_matrix <- function(x) {
is_numeric(x) && is.matrix(x)
}
is_scalar_numeric <- function(x) {
is_scalar_integer(x) || is_scalar_double(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.