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." ))
  }
}

Try the trafo package in your browser

Any scripts or data that you put into this service are public.

trafo documentation built on May 2, 2019, 2:13 p.m.