/R/broom-package.R
https://github.com/tidymodels/broom · R · 30 lines · 1 code · 1 blank · 28 comment · 0 complexity · 135d78d33b693c6d1039a5e7eb015ee3 MD5 · raw file
- #' @title Convert Statistical Objects into Tidy Tibbles
- #' @name broom
- #' @description Convert statistical analysis objects from R into tidy tibbles,
- #' so that they can more easily be combined, reshaped and otherwise processed
- #' with tools like dplyr, tidyr and ggplot2. The package provides three S3
- #' generics: tidy, which summarizes a model's statistical findings such as
- #' coefficients of a regression; augment, which adds columns to the original
- #' data such as predictions, residuals and cluster assignments; and glance,
- #' which provides a one-row summary of model-level statistics.
- #'
- #' @importFrom stats AIC BIC coef confint fitted logLik model.frame
- #' @importFrom stats predict qnorm qt residuals setNames var na.omit
- #' @importFrom stats model.response terms na.pass cooks.distance
- #' @importFrom stats influence rstandard
- #'
- #' @importFrom purrr map_df set_names possibly
- #' @importFrom tibble tibble as_tibble
- #' @importFrom tidyr pivot_longer pivot_wider
- #' @importFrom dplyr select filter mutate mutate_at
- #'
- #' @importFrom utils head
- #' @importFrom glue glue
- #'
- #' @import dplyr
- #'
- #' @docType package
- #' @aliases broom broom-package
- #' @keywords internal
- "_PACKAGE"