R/resid.R

Defines functions resid.linreg

Documented in resid.linreg

#' This contains the residuals of linreg function.
#' 
#' 
#' @param x An object of linreg class
#' @param ... Further arguments passed to or from other methods
#' @export

resid.linreg = function(x,...){
  if(length(x$residuals)){
    print.default(as.vector(x$residuals))
  } else {cat("regression not available \n")}
}
Suhani8884/Lab4 documentation built on Sept. 23, 2020, 12:44 a.m.