binaryChecks <- function(x, method){
if(length(unique(x)) > 2){
stop(paste(method, "only works for binary outcomes at this time"))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.