broom v0.3.7

0

Monthly downloads

0th

Percentile

by David Robinson

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.

Functions in broom

Name Description
augment_columns add fitted values, residuals, and other common outputs to an augment call
insert_NAs insert a row of NAs into a data frame wherever another data frame has NAs
pyears_tidiers Tidy person-year summaries
multinom_tidiers Tidying methods for multinomial logistic regression models
inflate Expand a dataset to include all factorial combinations of one or more variables
biglm_tidiers Tidiers for biglm and bigglm object
coxph_tidiers Tidiers for coxph object
aareg_tidiers Tidiers for aareg objects
nls_tidiers Tidying methods for a nonlinear model
cch_tidiers tidiers for case-cohort data
list_tidiers Tidiers for return values from functions that aren't S3 objects
optim_tidiers Tidiers for lists returned from optim
finish_glance Add logLik, AIC, BIC, and other common measurements to a glance of a prediction
tidy.pairwise.htest tidy a pairwise hypothesis test
lme4_tidiers Tidying methods for mixed effects models
glmnet_tidiers Tidiers for LASSO or elasticnet regularized fits
glm_tidiers Tidying methods for a glm object
rlm_tidiers Tidying methods for an rlm (robust linear model) object
Arima_tidiers Tidying methods for ARIMA modeling of time series
rowwise_df_tidiers Tidying methods for rowwise_dfs from dplyr, for tidying each row and recombining the results
lm_tidiers Tidying methods for a linear model
fix_data_frame Ensure an object is a data frame, with rownames moved into a column
gam_tidiers Tidying methods for a generalized additive model (gam)
nlme_tidiers Tidying methods for mixed effects models
tidy.ftable tidy an ftable object
sexpfit_tidiers Tidy an expected survival curve
broom Convert Statistical Analysis Objects into Tidy Data Frames
summary_tidiers Tidiers for summaryDefault objects
augment Augment data according to a tidied model
smooth.spline_tidiers tidying methods for smooth.spline objects
tidy.table tidy a table object
data.frame_tidiers Tidiers for data.frame objects
htest_tidiers Tidying methods for an htest object
matrix_tidiers Tidiers for matrix objects
compact Remove NULL items in a vector or list
survfit_tidiers tidy survival curve fits
ridgelm_tidiers Tidying methods for ridgelm objects from the MASS package
tidy.power.htest tidy a power.htest
survreg_tidiers Tidiers for a parametric regression survival model
tidy.spec tidy a spec objet
confint_tidy Calculate confidence interval as a tidy data frame
cv.glmnet_tidiers Tidiers for glmnet cross-validation objects
multcomp_tidiers tidying methods for objects produced by multcomp
tidy.map Tidy method for map objects.
kmeans_tidiers Tidying methods for kmeans objects
process_lm helper function to process a tidied lm object
tidy.NULL tidy on a NULL input
tidy Tidy the result of a test into a summary data.frame
sp_tidiers tidying methods for classes from the sp package.
bootstrap Set up bootstrap replicates of a dplyr operation
tidy.coeftest Tidying methods for coeftest objects
glance Construct a single row summary "glance" of a model, fit, or other object
unrowname strip rownames from an object
loess_tidiers Augmenting methods for loess models
tidy.ts tidy a ts timeseries object
tidy.TukeyHSD tidy a TukeyHSD object
tidy.default Default tidying method
tidy.density tidy a density objet
plm_tidiers Tidiers for panel regression linear models
zoo_tidiers Tidying methods for a zoo object
anova_tidiers Tidying methods for anova and AOV objects
felm_tidiers Tidying methods for models with multiple group fixed effects
tidy.manova tidy a MANOVA object
No Results!

Last month downloads

Details

Type Package
Date 2015-05-05
URL http://github.com/dgrtwo/broom
BugReports http://github.com/dgrtwo/broom/issues
VignetteBuilder knitr
License MIT + file LICENSE
NeedsCompilation no
Packaged 2015-05-05 22:14:55 UTC; dgrtwo
Repository CRAN
Date/Publication 2015-05-06 14:46:28

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/broom)](http://www.rdocumentation.org/packages/broom)