R/report_lm.R

Defines functions report_lm

Documented in report_lm

#' @name report_lm
#' @title report_lm
#' @param df dataframe, source of plot
#' @param x key of independent variable
#' @param y key of dependent variable
#' @return None
#' @export
report_lm <- function(data, x, y) {
  cat('\n')
  f <- as.formula(paste(y, '~', x, sep = ''))
  rep <- lm(f, data = data)
  cat('\n')
  print(summary(rep))
}
a1trl9/svnc documentation built on Dec. 2, 2019, 12:03 a.m.