Learn R Programming

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

broom (version 0.3.4)

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

815,730

Version

0.3.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 23rd, 2014

Functions in broom (0.3.4)

tidy.density

tidy a density objet
sexpfit_tidiers

Tidy an expected survival curve
glmnet_tidiers

Tidiers for LASSO or elasticnet regularized fits
multcomp_tidiers

tidying methods for objects produced by multcomp
survfit_tidiers

tidy survival curve fits
rowwise_df_tidiers

Tidying methods for rowwise_dfs from dplyr, for tidying each row and recombining the results
tidy.map

Tidy method for map objects.
bootstrap

Set up bootstrap replicates of a dplyr operation
tidy.ts

tidy a ts timeseries object
smooth.spline_tidiers

tidying methods for smooth.spline objects
nls_tidiers

Tidying methods for a nonlinear model
tidy.TukeyHSD

tidy a TukeyHSD object
felm_tidiers

Tidying methods for models with multiple group fixed effects
coxph_tidiers

Tidiers for coxph object
tidy.table

tidy a table object
inflate

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

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

Augment data according to a tidied model
zoo_tidiers

Tidying methods for a zoo object
glm_tidiers

Tidying methods for a glm object
kmeans_tidiers

Tidying methods for kmeans objects
tidy.pairwise.htest

tidy a pairwise hypothesis test
tidy.default

Default tidying method
glance

Construct a single row summary "glance" of a model, fit, or other object
cch_tidiers

tidiers for case-cohort data
pyears_tidiers

Tidy person-year summaries
survreg_tidiers

Tidiers for a parametric regression survival model
aareg_tidiers

Tidiers for aareg objects
tidy.spec

tidy a spec objet
tidy.manova

tidy a MANOVA object
lm_tidiers

Tidying methods for a linear model
Arima_tidiers

Tidying methods for ARIMA modeling of time series
tidy.ftable

tidy an ftable object
compact

Remove NULL items in a vector or list
ridgelm_tidiers

Tidying methods for ridgelm objects from the MASS package
anova_tidiers

Tidying methods for anova and AOV objects
unrowname

strip rownames from an object
augment_columns

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

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

Calculate confidence interval as a tidy data frame
sp_tidiers

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

Tidiers for data.frame objects
insert_NAs

insert a row of NAs into a data frame wherever another data frame has NAs
tidy.NULL

tidy on a NULL input
cv.glmnet_tidiers

Tidiers for glmnet cross-validation objects
lme4_tidiers

Tidying methods for mixed effects models
tidy

Tidy the result of a test into a summary data.frame
htest_tidiers

Tidying methods for an htest object