tidy_lm: A simple wrapper on 'lm()' that takes input in a...

Description Usage Arguments Value Examples

View source: R/tidy_lm.R

Description

A simple wrapper on lm() that takes input in a pipe-friendly order and gives output tidied by broom::tidy()

Usage

1
tidy_lm(df, model, ...)

Arguments

df

A dataframe R will pull the variables from to run the regression

model

A model object of class "lm" or a valid formula.

...

Further arguments to lm()

Value

A data frame of model information

Examples

1
tidy_lm(mtcars, mpg ~ cyl + am + hp)

jameshasbany/fastlm documentation built on July 26, 2020, 9:40 a.m.