broom: Convert Statistical Analysis Objects into Tidy Data Frames

Convert statistical analysis objects from R into tidy data frames, 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.

AuthorDavid Robinson [aut, cre], Matthieu Gomez [ctb], Boris Demeshev [ctb], Dieter Menne [ctb], Benjamin Nutter [ctb], Luke Johnston [ctb], Ben Bolker [ctb], Francois Briatte [ctb], Jeffrey Arnold [ctb], Jonah Gabry [ctb], Luciano Selzer [ctb], Gavin Simpson [ctb], Jens Preussner [ctb], Jay Hesselberth [ctb], Hadley Wickham [ctb]
Date of publication2016-06-24 19:14:04
MaintainerDavid Robinson <admiral.david@gmail.com>
LicenseMIT + file LICENSE
Version0.4.1
http://github.com/dgrtwo/broom

View on CRAN

Man pages

aareg_tidiers: Tidiers for aareg objects

acf_tidiers: Tidying method for the acf function

anova_tidiers: Tidying methods for anova and AOV objects

Arima_tidiers: Tidying methods for ARIMA modeling of time series

auc_tidiers: Tidiers for objects from the AUC package

augment: Augment data according to a tidied model

augment_columns: add fitted values, residuals, and other common outputs to an...

biglm_tidiers: Tidiers for biglm and bigglm object

binDesign_tidiers: Tidy a binDesign object

binWidth_tidiers: Tidy a binWidth object

bootstrap: Set up bootstrap replicates of a dplyr operation

boot_tidiers: Tidying methods for bootstrap computations

broom: Convert Statistical Analysis Objects into Tidy Data Frames

btergm_tidiers: Tidying method for a bootstrapped temporal exponential random...

cch_tidiers: tidiers for case-cohort data

compact: Remove NULL items in a vector or list

confint.geeglm: Confidence interval for 'geeglm' objects

confint_tidy: Calculate confidence interval as a tidy data frame

coxph_tidiers: Tidiers for coxph object

cv.glmnet_tidiers: Tidiers for glmnet cross-validation objects

data.frame_tidiers: Tidiers for data.frame objects

ergm_tidiers: Tidying methods for an exponential random graph model

felm_tidiers: Tidying methods for models with multiple group fixed effects

finish_glance: Add logLik, AIC, BIC, and other common measurements to a...

fitdistr_tidiers: Tidying methods for fitdistr objects from the MASS package

fix_data_frame: Ensure an object is a data frame, with rownames moved into a...

gamlss_tidiers: Tidying methods for gamlss objects

gam_tidiers: Tidying methods for a generalized additive model (gam)

geeglm_tidiers: Tidying methods for generalized estimating equations models

glance: Construct a single row summary "glance" of a model, fit, or...

glmnet_tidiers: Tidiers for LASSO or elasticnet regularized fits

glm_tidiers: Tidying methods for a glm object

gmm_tidiers: Tidying methods for generalized method of moments "gmm"...

htest_tidiers: Tidying methods for an htest object

inflate: Expand a dataset to include all factorial combinations of one...

insert_NAs: insert a row of NAs into a data frame wherever another data...

kappa_tidiers: Tidy a kappa object from a Cohen's kappa calculation

kde_tidiers: Tidy a kernel density estimate object from the ks package

kmeans_tidiers: Tidying methods for kmeans objects

list_tidiers: Tidiers for return values from functions that aren't S3...

lme4_tidiers: Tidying methods for mixed effects models

lmodel2_tidiers: Tidiers for linear model II objects from the lmodel2 package

lm_tidiers: Tidying methods for a linear model

loess_tidiers: Augmenting methods for loess models

matrix_tidiers: Tidiers for matrix objects

mclust_tidiers: Tidying methods for Mclust objects

mcmc_tidiers: Tidying methods for MCMC (Stan, JAGS, etc.) fits

mle2_tidiers: Tidy mle2 maximum likelihood objects

multcomp_tidiers: tidying methods for objects produced by 'multcomp'

multinom_tidiers: Tidying methods for multinomial logistic regression models

nlme_tidiers: Tidying methods for mixed effects models

nls_tidiers: Tidying methods for a nonlinear model

optim_tidiers: Tidiers for lists returned from optim

orcutt_tidiers: Tidiers for Cochrane Orcutt object

plm_tidiers: Tidiers for panel regression linear models

poLCA_tidiers: Tidiers for poLCA objects

prcomp_tidiers: Tidying methods for principal components analysis via...

process_ergm: helper function to process a tidied ergm object

process_geeglm: helper function to process a tidied geeglm object

process_lm: helper function to process a tidied lm object

process_rq: Helper function for tidy.rq and tidy.rqs

pyears_tidiers: Tidy person-year summaries

rcorr_tidiers: Tidying methods for rcorr objects

ridgelm_tidiers: Tidying methods for ridgelm objects from the MASS package

rlm_tidiers: Tidying methods for an rlm (robust linear model) object

rowwise_df_tidiers: Tidying methods for rowwise_dfs from dplyr, for tidying each...

rq_tidiers: Tidying methods for quantile regression models

rstanarm_tidiers: Tidying methods for an rstanarm model

sexpfit_tidiers: Tidy an expected survival curve

smooth.spline_tidiers: tidying methods for smooth.spline objects

sparse_tidiers: Tidy a sparseMatrix object from the Matrix package

sp_tidiers: tidying methods for classes from the sp package.

summary_tidiers: Tidiers for summaryDefault objects

survfit_tidiers: tidy survival curve fits

survreg_tidiers: Tidiers for a parametric regression survival model

svd_tidiers: Tidying methods for singular value decomposition

tidy: Tidy the result of a test into a summary data.frame

tidy.coeftest: Tidying methods for coeftest objects

tidy.default: Default tidying method

tidy.density: tidy a density objet

tidy.dist: Tidy a distance matrix

tidy.ftable: tidy an ftable object

tidy.manova: tidy a MANOVA object

tidy.map: Tidy method for map objects.

tidy.NULL: tidy on a NULL input

tidy.pairwise.htest: tidy a pairwise hypothesis test

tidy.power.htest: tidy a power.htest

tidy.spec: tidy a spec objet

tidy.table: tidy a table object

tidy.ts: tidy a ts timeseries object

tidy.TukeyHSD: tidy a TukeyHSD object

unrowname: strip rownames from an object

vector_tidiers: Tidy atomic vectors

xyz_tidiers: Tidiers for x, y, z lists suitable for persp, image, etc.

zoo_tidiers: Tidying methods for a zoo object

Files in this package

broom
broom/inst
broom/inst/extdata
broom/inst/extdata/8schools.stan
broom/inst/extdata/rstan_example.rda
broom/inst/doc
broom/inst/doc/broom.html
broom/inst/doc/kmeans.R
broom/inst/doc/broom_and_dplyr.html
broom/inst/doc/broom.Rmd
broom/inst/doc/kmeans.Rmd
broom/inst/doc/broom_and_dplyr.Rmd
broom/inst/doc/bootstrapping.R
broom/inst/doc/broom.R
broom/inst/doc/broom_and_dplyr.R
broom/inst/doc/kmeans.html
broom/inst/doc/bootstrapping.html
broom/inst/doc/bootstrapping.Rmd
broom/tests
broom/tests/testthat
broom/tests/testthat/test-lme4.R
broom/tests/testthat/test-tidy.R
broom/tests/testthat/test-lm.R
broom/tests/testthat/test-gam.R
broom/tests/testthat/test-rstanarm.R
broom/tests/testthat/test-bootstrap.R
broom/tests/testthat/test-nlme.R
broom/tests/testthat/test-rowwise.R
broom/tests/testthat/test-dplyr.R
broom/tests/testthat/helper-checkers.R
broom/tests/testthat/test-augment.R
broom/tests/test-all.R
broom/NAMESPACE
broom/R
broom/R/stats_tidiers.R broom/R/mle2_tidiers.R broom/R/sparse_tidiers.R broom/R/ergm_tidiers.R broom/R/felm_tidiers.R broom/R/loess_tidiers.R broom/R/fitdistr_tidiers.R broom/R/svd_tidiers.R broom/R/arima_tidiers.R broom/R/bingroup_tidiers.R broom/R/lme4_tidiers.R broom/R/lm_tidiers.R broom/R/list_tidiers.R broom/R/map_tidiers.R broom/R/lmtest_tidiers.R broom/R/orcutt_tidiers.R broom/R/plm_tidiers.R broom/R/anova_tidiers.R broom/R/glance.R broom/R/mcmc_tidiers.R broom/R/summary_tidiers.R broom/R/vector_tidiers.R broom/R/zoo_tidiers.R broom/R/glm_tidiers.R broom/R/geeglm_tidiers.R broom/R/globals.R broom/R/augment.R broom/R/utilities.R broom/R/tidy.R broom/R/lmodel2_tidiers.R broom/R/gam_tidiers.R broom/R/nlme_tidiers.R broom/R/polca_tidiers.R broom/R/optim_tidiers.R broom/R/rowwise_df_tidiers.R broom/R/rstanarm_tidiers.R broom/R/data.frame_tidiers.R broom/R/htest_tidiers.R broom/R/broom.R broom/R/multcomp_tidiers.R broom/R/rq_tidiers.R broom/R/biglm_tidiers.R broom/R/kde_tidiers.R broom/R/boot_tidiers.R broom/R/ridgelm_tidiers.R broom/R/survival_tidiers.R broom/R/nls_tidiers.R broom/R/kmeans_tidiers.R broom/R/gmm_tidiers.R broom/R/rcorr_tidiers.R broom/R/gamlss_tidiers.R broom/R/matrix_tidiers.R broom/R/prcomp_tidiers.R broom/R/btergm_tidiers.R broom/R/smooth.spline_tidiers.R broom/R/auc_tidiers.R broom/R/xyz_tidiers.R broom/R/mclust_tidiers.R broom/R/psych_tidiers.R broom/R/glmnet_tidiers.R broom/R/extras.R broom/R/rlm_tidiers.R broom/R/sp_tidiers.R broom/R/multinom_tidiers.R
broom/vignettes
broom/vignettes/broom.Rmd
broom/vignettes/kmeans.Rmd
broom/vignettes/broom_and_dplyr.Rmd
broom/vignettes/bootstrapping.Rmd
broom/README.md
broom/MD5
broom/build
broom/build/vignette.rds
broom/DESCRIPTION
broom/man
broom/man/rstanarm_tidiers.Rd broom/man/htest_tidiers.Rd broom/man/unrowname.Rd broom/man/svd_tidiers.Rd broom/man/cv.glmnet_tidiers.Rd broom/man/tidy.NULL.Rd broom/man/geeglm_tidiers.Rd broom/man/pyears_tidiers.Rd broom/man/list_tidiers.Rd broom/man/rlm_tidiers.Rd broom/man/auc_tidiers.Rd broom/man/bootstrap.Rd broom/man/btergm_tidiers.Rd broom/man/tidy.Rd broom/man/fitdistr_tidiers.Rd broom/man/binWidth_tidiers.Rd broom/man/tidy.pairwise.htest.Rd broom/man/aareg_tidiers.Rd broom/man/nls_tidiers.Rd broom/man/prcomp_tidiers.Rd broom/man/lme4_tidiers.Rd broom/man/fix_data_frame.Rd broom/man/confint.geeglm.Rd broom/man/tidy.TukeyHSD.Rd broom/man/process_lm.Rd broom/man/tidy.density.Rd broom/man/glm_tidiers.Rd broom/man/multcomp_tidiers.Rd broom/man/optim_tidiers.Rd broom/man/orcutt_tidiers.Rd broom/man/tidy.spec.Rd broom/man/compact.Rd broom/man/rq_tidiers.Rd broom/man/acf_tidiers.Rd broom/man/boot_tidiers.Rd broom/man/finish_glance.Rd broom/man/poLCA_tidiers.Rd broom/man/glmnet_tidiers.Rd broom/man/kde_tidiers.Rd broom/man/vector_tidiers.Rd broom/man/ridgelm_tidiers.Rd broom/man/data.frame_tidiers.Rd broom/man/binDesign_tidiers.Rd broom/man/summary_tidiers.Rd broom/man/tidy.map.Rd broom/man/process_rq.Rd broom/man/sexpfit_tidiers.Rd broom/man/plm_tidiers.Rd broom/man/lmodel2_tidiers.Rd broom/man/rowwise_df_tidiers.Rd broom/man/kappa_tidiers.Rd broom/man/ergm_tidiers.Rd broom/man/tidy.dist.Rd broom/man/tidy.manova.Rd broom/man/confint_tidy.Rd broom/man/tidy.coeftest.Rd broom/man/felm_tidiers.Rd broom/man/sparse_tidiers.Rd broom/man/smooth.spline_tidiers.Rd broom/man/anova_tidiers.Rd broom/man/inflate.Rd broom/man/glance.Rd broom/man/gam_tidiers.Rd broom/man/tidy.table.Rd broom/man/nlme_tidiers.Rd broom/man/zoo_tidiers.Rd broom/man/cch_tidiers.Rd broom/man/mcmc_tidiers.Rd broom/man/augment.Rd broom/man/sp_tidiers.Rd broom/man/lm_tidiers.Rd broom/man/biglm_tidiers.Rd broom/man/loess_tidiers.Rd broom/man/mclust_tidiers.Rd broom/man/tidy.ts.Rd broom/man/survreg_tidiers.Rd broom/man/matrix_tidiers.Rd broom/man/broom.Rd broom/man/process_geeglm.Rd broom/man/xyz_tidiers.Rd broom/man/rcorr_tidiers.Rd broom/man/multinom_tidiers.Rd broom/man/coxph_tidiers.Rd broom/man/augment_columns.Rd broom/man/process_ergm.Rd broom/man/kmeans_tidiers.Rd broom/man/tidy.power.htest.Rd broom/man/insert_NAs.Rd broom/man/Arima_tidiers.Rd broom/man/gmm_tidiers.Rd broom/man/mle2_tidiers.Rd broom/man/tidy.default.Rd broom/man/gamlss_tidiers.Rd broom/man/tidy.ftable.Rd broom/man/survfit_tidiers.Rd
broom/LICENSE

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.