Augment data according to a tidied model
Given an R statistical model or other non-tidy object, add columns to the original dataset such as predictions, residuals and cluster assignments.
augment(x, data, ...)
- model or other R object to convert to data frame
- original dataset, if needed (when possible this is extracted from the model)
- other arguments passed to methods
This generic originated in the ggplot2 package, where it was called "fortify."
Looks like there are no examples yet.