Learn R Programming

⚠️There's a newer version (1.0.4) of this package.Take me there.

broom (version 0.4.0)

Convert Statistical Analysis Objects into Tidy Data Frames

Description

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.

Copy Link

Version

Install

install.packages('broom')

Monthly Downloads

620,943

Version

0.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Robinson

Last Published

November 30th, 2015

Functions in broom (0.4.0)

binWidth_tidiers

Tidy a binWidth object
fix_data_frame

Ensure an object is a data frame, with rownames moved into a column
coxph_tidiers

Tidiers for coxph object
cch_tidiers

tidiers for case-cohort data
tidy.density

tidy a density objet
finish_glance

Add logLik, AIC, BIC, and other common measurements to a glance of a prediction
gamlss_tidiers

Tidying methods for gamlss objects
tidy.NULL

tidy on a NULL input
compact

Remove NULL items in a vector or list
matrix_tidiers

Tidiers for matrix objects
glance

Construct a single row summary "glance" of a model, fit, or other object
tidy.ftable

tidy an ftable object
anova_tidiers

Tidying methods for anova and AOV objects
confint_tidy

Calculate confidence interval as a tidy data frame
kmeans_tidiers

Tidying methods for kmeans objects
list_tidiers

Tidiers for return values from functions that aren't S3 objects
Arima_tidiers

Tidying methods for ARIMA modeling of time series
glm_tidiers

Tidying methods for a glm object
confint.geeglm

Confidence interval for geeglm objects
htest_tidiers

Tidying methods for an htest object
sexpfit_tidiers

Tidy an expected survival curve
ergm_tidiers

Tidying methods for an exponential random graph model
broom

Convert Statistical Analysis Objects into Tidy Data Frames
bootstrap

Set up bootstrap replicates of a dplyr operation
boot_tidiers

Tidying methods for bootstrap computations
glmnet_tidiers

Tidiers for LASSO or elasticnet regularized fits
kappa_tidiers

Tidy a kappa object from a Cohen's kappa calculation
auc_tidiers

Tidiers for objects from the AUC package
tidy.power.htest

tidy a power.htest
augment_columns

add fitted values, residuals, and other common outputs to an augment call
nls_tidiers

Tidying methods for a nonlinear model
geeglm_tidiers

Tidying methods for generalized estimating equations models
sp_tidiers

tidying methods for classes from the sp package.
data.frame_tidiers

Tidiers for data.frame objects
inflate

Expand a dataset to include all factorial combinations of one or more variables
mle2_tidiers

Tidy mle2 maximum likelihood objects
felm_tidiers

Tidying methods for models with multiple group fixed effects
mcmc_tidiers

Tidying methods for MCMC (Stan, JAGS, etc.) fits
smooth.spline_tidiers

tidying methods for smooth.spline objects
lm_tidiers

Tidying methods for a linear model
lme4_tidiers

Tidying methods for mixed effects models
insert_NAs

insert a row of NAs into a data frame wherever another data frame has NAs
rlm_tidiers

Tidying methods for an rlm (robust linear model) object
cv.glmnet_tidiers

Tidiers for glmnet cross-validation objects
plm_tidiers

Tidiers for panel regression linear models
survreg_tidiers

Tidiers for a parametric regression survival model
optim_tidiers

Tidiers for lists returned from optim
survfit_tidiers

tidy survival curve fits
multcomp_tidiers

tidying methods for objects produced by multcomp
tidy.coeftest

Tidying methods for coeftest objects
augment

Augment data according to a tidied model
ridgelm_tidiers

Tidying methods for ridgelm objects from the MASS package
multinom_tidiers

Tidying methods for multinomial logistic regression models
gam_tidiers

Tidying methods for a generalized additive model (gam)
fitdistr_tidiers

Tidying methods for fitdistr objects from the MASS package
loess_tidiers

Augmenting methods for loess models
unrowname

strip rownames from an object
tidy.ts

tidy a ts timeseries object
pyears_tidiers

Tidy person-year summaries
tidy.pairwise.htest

tidy a pairwise hypothesis test
svd_tidiers

Tidying methods for singular value decomposition
tidy.TukeyHSD

tidy a TukeyHSD object
btergm_tidiers

Tidying method for a bootstrapped temporal exponential random graph model
tidy.table

tidy a table object
rq_tidiers

Tidying methods for quantile regression models
summary_tidiers

Tidiers for summaryDefault objects
rcorr_tidiers

Tidying methods for rcorr objects
binDesign_tidiers

Tidy a binDesign object
process_lm

helper function to process a tidied lm object
process_geeglm

helper function to process a tidied geeglm object
tidy.manova

tidy a MANOVA object
tidy.default

Default tidying method
tidy

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

Tidy method for map objects.
process_rq

Helper function for tidy.rq and tidy.rqs
xyz_tidiers

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

Tidying methods for a zoo object
tidy.spec

tidy a spec objet
aareg_tidiers

Tidiers for aareg objects
biglm_tidiers

Tidiers for biglm and bigglm object
rowwise_df_tidiers

Tidying methods for rowwise_dfs from dplyr, for tidying each row and recombining the results
nlme_tidiers

Tidying methods for mixed effects models
process_ergm

helper function to process a tidied ergm object