tidy: Retrieve tidy dataframe if it exists

View source: R/generics.R

tidyR Documentation

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

set.seed(123)
lm.mod <- lm(Sepal.Length ~ Species, iris)
broomExtra::tidy(x = lm.mod, conf.int = TRUE)

broomExtra documentation built on April 2, 2022, 5:05 p.m.