Rdocumentation
powered by
Learn R Programming
broom (version 0.3.4)
augment: Augment data according to a tidied model
Description
Given an R statistical model or other non-tidy object, add columns to the original dataset such as predictions, residuals and cluster assignments.
Usage
augment(x, data, ...)
Arguments
x
model or other R object to convert to data frame
data
original dataset, if needed (when possible this is extracted from the model)
...
other arguments passed to methods
Details
This generic originated in the ggplot2 package, where it was called "fortify."
See Also
augment.lm