R/slope.R

Defines functions slope

Documented in slope

#' Extract slope of linear regression
#'
#' Extracts the slope of a linear regression.
#'
#' @param lmfit A linear model fit using lm()
#' @return Slope of the linear model fit
#' @export
slope <- function(lmfit){coef(lmfit)[2]}
cfree14/freeR documentation built on Aug. 22, 2023, 11:12 p.m.