R/grab_coefs.R

Defines functions grab_coefs

Documented in grab_coefs

#' @title Grab the slope coefficients
#' @description This function grabs the coefficients of a linear model.
#' @param lm_obj the linear model created by the lm function
#' @export
#' @examples
#' library(palmerpenguins)
#' fit <- lm (bill_length_mm ~., data = penguins[,-8])
#' grab_coefs(fit)

grab_coefs <- function(lm_obj) {
    lm_obj$coefficients
}
kimgannon/bis557 documentation built on Nov. 25, 2020, 7:09 a.m.