broomExtra (version 4.3.2)

tidy: Retrieve tidy dataframe if it exists

Description

Checks if a tidy method exits for a given object, either in {broom} or in {broom.mixed}. If it does, it turn an object into a tidy tibble, if not, return a NULL. In this case, you can try the tidy_parameters() function.

Usage

tidy(x, ...)

Arguments

x

An object to be converted into a tidy tibble::tibble().

...

Additional arguments to tidying method.

Value

A tibble::tibble() with information about model components.

See Also

grouped_tidy, tidy_parameters

Examples

Run this code
# NOT RUN {
set.seed(123)
lm.mod <- lm(Sepal.Length ~ Species, iris)
broomExtra::tidy(x = lm.mod, conf.int = TRUE)
# }

Run the code above in your browser using DataLab