#' Title
#'
#' @param model
#' @param data test data from whole data
#' @param intype type of prediction "class", "response"
#'
#' @return
#' @export
#'
#' @examples
predict_model<-function(model,data,intype){
pred<-predict(model,newdata = data, type = intype)
return(pred)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.