Learn R Programming

crossmap (version 0.3.0)

tidy_glance: Turn an object into a tidy tibble with glance information

Description

Apply both broom::tidy() and broom::glance() to an object and return a single tibble with both sets of information.

Usage

tidy_glance(x, ..., tidy_args = list(), glance_args = list())

Value

A tibble with columns and rows from broom::tidy() and columns of repeated rows from broom::glance().

Column names that appear in both the tidy data and glance data will be disambiguated by appending "model." to the glance column names.

Arguments

x

An object to be converted into a tidy tibble.

...

Additional arguments passed to broom::tidy() and broom::glance().

Arguments are passed to both methods, but should be ignored by the inapplicable method. For example, if called on a lm object, conf.int will affect broom::tidy() but not broom::glance().

tidy_args

A list of additional arguments passed only to broom::tidy().

glance_args

A list of additional arguments passed only to broom::glance().

Examples

Run this code
mod <- lm(mpg ~ wt + qsec, data = mtcars)
tidy_glance(mod)
tidy_glance(mod, conf.int = TRUE)
tidy_glance(mod, tidy_args = list(conf.int = TRUE))

Run the code above in your browser using DataLab