Learn R Programming

broomExtra (version 4.3.2)

augment: Retrieve augmented dataframe if it exists.

Description

Checks if a augment method exits for a given object, either in {broom} or in {broom.mixed}. If it does, return the model summary dataframe, if not, return a NULL.

Usage

augment(x, ...)

Arguments

x

Model object or other R object with information to append to observations.

...

Addition arguments to augment method.

Value

A tibble::tibble() with information about data points.

See Also

grouped_augment

Examples

Run this code
# NOT RUN {
set.seed(123)
lm.mod <- lm(Sepal.Length ~ Species, iris)
broomExtra::augment(lm.mod)
# }

Run the code above in your browser using DataLab