R/coef.R

Defines functions coef.linreg

Documented in coef.linreg

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

coef.linreg = function(object, ...){
  if(length(object$regression_coefficent)){
    print.default(t(object$regression_coefficent))
  } else {cat("Coefficient not available \n")}
}
Suhani8884/Lab4 documentation built on Sept. 23, 2020, 12:44 a.m.