R/check_trafo_predict.R

Defines functions check_trafo_predict

check_trafo_predict <- function(object, trafo) {
  
  if (!inherits(object, "trafo_lm")) { 
    stop(paste0("object is of class", class(object), " but it needs to be of 
                class trafo_lm." ))
  }
}
akreutzmann/trafo documentation built on Sept. 14, 2020, 9:03 p.m.