## Check if an argument is a numeric vector
check.vector <- function(vector) {
if(class(vector) != "numeric") {
stop("Your vector is not numeric!")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.