xDisc <- function(data, resp, dom, fe.disc=NULL){
dataF <- data[ ,!colnames(data) %in% c(resp,dom)]
if(is.null(fe.disc)){
# Get discrete variables by variable type
fe.disc <- c(names(which(lapply(dataF, is.character)==TRUE)))
fe.disc
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.