#' 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")}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.