To be released as broom 0.7.10.
- Clarifies error when
pysch::mediateoutput is dispatched totidy.mediate(#1037by@LukasWallrich). - Allows user to specify confidence level for
tidy.rma(#1041by@TarenSanders) - Clarifies documentation related to usage of
augment_columns(); most package users should useaugment()in favor ofaugment_columns(). See?augment_columnsfor more details. - Extends support for
emmeansby fixing non-standard column names in case of asymptotically derived inferential statistics. (#1046by@crsh) - Fixes use of index columns in
augment.mlogit. (#1045and#1053by@jamesrraeand@gregmacfarlane) - Correct column naming of standard error measures in
glance.survfit(). - Various bug fixes and improvements to documentation.
- Fixes confidence intervals in
tidy.crr(), which were previously exponentiated whenexponentiate = FALSE(#1023by@leejasme) - Deprecates
Rchoicetidiers, as the newest 0.3-3 release requires R 4.0+ and does not re-export needed generics. - Updates to
ergmtidiers in anticipation of changes in later releases. (#1034by@krivit)
- Fixed bug in
glance.ergmrelated to handling of MCMC details. - Address breakages in unit tests for {fixest} tidiers.
- Fixed bug in
tidy.epi.2by2that resulted in errors with new version ofepiR(#1028by@nt-williams) - Added
exponentiateargument totidy.gam()tidier applicable for parametric terms (#1013by@ddsjoberg) - Added
exponentiateargument totidy.negbin()tidier (#1011by@ddsjoberg) - Fixed failures in
spdeptidiers following breaking changes in the most recent release - Various bug fixes and improvements to documentation
- Fixed bug in
augmenttidiers resulting in.fittedand.se.fitarray columns. - Fixed bug that made column
ynon-numeric aftertidy_xyz(#973by@jiho) - Added tidiers for
MASS:glm.nb(#998by@joshyam-k) - Fixed bug in
tidy.fixestthat sometimes prevented arguments likesefrom being used (#1001by@karldw) - Fixed bug in
tidy.fixestthat resulted in errors when columns with namexare present (#1007by@grantmcdermott) - Moved forward with planned deprecation of
gamlsstidiers in favor of those provided inbroom.mixed - Various bug fixes and improvements to documentation
- Fixed bug in the
nnet::multinomtidier in the case that the response variable has only two levels (#993by@vincentarelbundockand@hughjonesd) - Various bug fixes and improvements to documentation
broom 0.7.4 introduces tidier support for a number of new model objects and improves functionality of many existing tidiers!
- Add tidiers for
Rchoiceobjects (#961by@vincentarelbundockand@Nateme16) - Add tidiers for objects produced by
car::leveneTest(#968by@vincentarelbundockand@mkirzon) - Add tidiers for objects produced by
cmprsk::crr(#971and#552by@vincentarelbundockand@margarethannum) - Add an
augment()method forgamobjects (#975and#645by@vincentarelbundock) - Add tidiers for
varsobjects (#979and#161by@vincentarelbundockand@Diego-MX)
This release also restores tidiers for felm objects from the lfe package, which was recently unarchived from CRAN.
tidy.emmGridcan now returnstd.errorandconf.*columns at the same time. (#962by@vincentarelbundockand@jmbarbone)tidy.garchcan now produce confidence intervals (#964by@vincentarelbundockand@IndrajeetPatil)tidy.coxphcan now report confidence intervals on models utilizing penalized/clustering terms (#966by@vincentarelbundockand@matthieu-faron)augment.lmnow works when some regression weights are equal to zero (#965by@vincentarelbundockand@vnijs)tidy.coxphcan now handle models utilizing penalized/clustering terms (#966and#969by@vincentarelbundock,@matthieu-faron, and@KZARCA)- Fix bug in
tidy.speedglmon R 4.0.0+ (#974by@uqzwang) - tidy.multinom works with matrix response (
#977and#666by@vincentarelbundockand@atyre2) - Various bug fixes and improvements to documentation and errors.
In broom 0.7.0, we introduced an error for model objects that subclassed
lm and relied on tidy.lm(), or similarly for tidy.glm(). Tidiers for
these objects were supported unintentionally, and we worried that tidiers for
these objects would silently report inaccurate results.
In hindsight, this change was unnecessarily abrupt. We've decided to roll back
this change, instead providing the following warning before allowing such
objects to fall back to the lm/glm tidier methods:
Tidiers for objects of class {subclass} are not maintained by the broom team, and are only supported through the {dispatched_method} tidier method. Please be cautious in interpreting and reporting broom output."
In addition,
- Restores tidiers for
summary.lmobjects (#953by@grantmcdermott) - Deprecate tidiers for the
lfepackage, which was archived from CRAN. - Various bug fixes and improvements to documentation and errors.
- Various bug fixes and improvements to documentation and errors.
While broom 0.7.1 is a minor release, it includes a number of exciting new features and bug fixes!
- Add tidiers for
marginsobjects. (#700by@grantmcdermott) - Added tidier methods for
mlogitobjects (#887by@gregmacfarlane) - Add
glance.coeftest()method (#932by@grantmcdermott)
One of the more major improvements in this release is the addition of the
interval argument to some augment methods for confidence, prediction,
and credible intervals. These columns will be consistently labeled .lower
and .upper! (#908 by @grantmcdermott, #925 by @bwiernik)
In addition...
- Extended the
glance.aov()method to include anr.squaredcolumn! glance.survfit()now passes...tosummary.survfit()to allow for adjustment of RMST and other measures (#880by@vincentarelbundock)- Several unsupported model objects that subclass
glmandlmnow error more informatively. - A number of improvements to documentation throughout the package.
- Fixed
newdatawarning message inaugment.*()output when thenewdatadidn't contain the response variable—augment methods no longer expect the response variable in the suppliednewdataargument. (#897by@rudeboybert) - Fixed a bug related to
tidy.geeglm()not being sensitive to theexponentiateargument (#867) - Fixed
augment.fixest()returning residuals in the.fittedcolumn. The method also now takes atype.residualsargument and defaults to the sametype.predictargument as thefixestpredict()method. (#877by@karldw) - Fix
tidy.felmconfidence interval bug. Replaces "robust" argument with "se.type". (#919by@grantmcdermott; supersedes#818by@kuriwaki) - Fix a bug in
tidy.drc()where some term labels would result in the overwriting of entries in thecurvecolumn (#914) - Fixed bug related to univariate zoo series in
tidy.zoo()(#916by@WillemVervoort) - Fixed a bug related to
tidy.prcomp()assigning the wrong PC labels from "loadings" and "scores" matrices (#910by@tavareshugo) - Fixed
tidy.polr()bug where p-values could only be returned ifexponentiate = FALSE.
We followed through with the planned deprecation of character vector tidiers in this release. Other vector tidiers that were soft-deprecated in 0.7.0 will be fully deprecated in a later release.
broom 0.7.0 is a major release with a large number of new tidiers,
soft-deprecations, and planned hard-deprecations of functions and arguments.
-
We have changed how we report degrees of freedom for
lmobjects (#212, #273). This is especially important for instructors in statistics courses. Previously thedfcolumn inglance.lm()reported the rank of the design matrix. Now it reports degrees of freedom of the numerator for the overall F-statistic. This is equal to the rank of the model matrix minus one (unless you omit an intercept column), so the newdfshould be the olddfminus one. -
We are moving away from supporting
summary.*()objects. In particular, we have removedtidy.summary.lm()as part of a major overhaul of internals. Instead of callingtidy()onsummary-like objects, please calltidy()directly on model objects moving forward. -
We have removed all support for the
quickargument intidy()methods. This is to simplify internals and is for maintainability purposes. We anticipate this will not influence many users as few people seemed to use it. If this majorly cramps your style, let us know, as we are considering a new verb to return only model parameters. In the meantime,stats::coef()together withtibble::enframe()provides most of the functionality oftidy(..., quick = TRUE). -
All
conf.intarguments now default toFALSE, and allconf.levelarguments now default to0.95. This should primarily affecttidy.survreg(), which previously always returned confidence intervals, although there are some others. -
Tidiers for
emmeans-objects use the argumentsconf.intandconf.levelinstead of relying on the argument names native to theemmeans::summary()-methods (i.e.,inferandlevel). Similarly,multcomp-tidiers now include a call tosummary()as previous behavior was akin to setting the now removed argumentquick = TRUE. Both families of tidiers now use theadj.p.valuecolumn name when appropriate. Finally,emmeans-,multcomp-, andTukeyHSD-tidiers now consistently use the column namescontrastandnull.valueinstead ofcomparison,level1andlevel2, orlhsandrhs(see #692).
This release of broom soft-deprecates the following functions and tidier
methods:
- Tidier methods for data frames, rowwise data frames, vectors and matrices
bootstrap()confint_tidy()fix_data_frame()finish_glance()augment.glmRob()tidy.table()andtidy.ftable()have been deprecated in favor oftibble::as_tibble()tidy.summaryDefault()andglance.summaryDefault()have been deprecated in favor ofskimr::skim()
We have also gone forward with our planned mixed model deprecations, and have
removed the following methods, which now live in broom.mixed:
tidy.brmsfit()tidy.merMod(),glance.merMod(),augment.merMod()tidy.lme(),glance.lme(),augment.lme()tidy.stanreg(),glance.stanreg()tidyMCMC(),tidy.rjags(),tidy.stanfit()
-
augment.factanal()now returns a tibble with columns names.fs1,.fs2, ..., instead offactor1,factor2, ... (#650) -
We have renamed the output of
augment.htest(). In particular, we have renamed the.residualscolumn to.residand the.stdresto.std.residfor consistency. These changes will only affect chi-squared tests. -
tidy.ridgelm()now always return aGCVcolumn and never returns anxmcolumn. (#533 by @jmuhlenkamp) -
tidy.dist()no longer supports theupperargument.
The internals of augment.*() methods have largely been overhauled.
-
If you pass a dataset to
augment()via thedataornewdataarguments, you are now guaranteed that the augmented dataset will have exactly the same number of rows as the original dataset. This differs from previous behavior primarily when there are missing values. Previouslyaugment()would drop rows containingNA. This should no longer be the case. -
augment.*()methods no longer accept anna.actionargument. -
In previous versions, several
augment.*()methods inherited theaugment.lm()method, but required additions to theaugment.lm()method itself. We have shifted away from this approach in favor of re-implementing manyaugment.*()methods as standalone methods making use of internal helper functions. As a result,augment.lm()and some related methods have deprecated (previously unused) arguments. -
augment()tries to give an informative error whendataisn't the original training data. -
The
.residcolumn in the output ofaugment().*methods is now consistently defined asy - y_hat
anovaobjects from thecarpackage (#754)pamobjects from theclusterpackage (#637 by @abbylsmith)drmobjects from thedrcpackage (#574 by @edild)summary_emmobjects from theemmeanspackage (#691 by @crsh)epi.2by2objects from theepiRpackage (#711)fixestobjects from thefixestpackage (#785 by @karldw)regsubsetsobjects from theleapspackage (#535)lm.betaobjects from thelm.betapackage (#545 by @mattle24)rmaobjects from themetaforpackage (#674 by @malcolmbarrett, @softloud)mfx,logitmfx,negbinmfx,poissonmfx,probitmfx, andbetamfxobjects from themfxpackage (#700 by @grantmcdermott)lmrobandglmrobobjects from therobustbasepackage (#205, #505)sarlmobjects from thespatialregpackage (#847 by @gregmacfarlane and @petrhrobar)speedglmobjects from thespeedglmpackage (#685)svyglmobjects from thesurveypackage (#611)systemfitobjects from thesystemfitpackage (by @jaspercooper)- We have restored a simplified version of
glance.aov(), which used to inherit from theglance.lm()method and now contains only the following columns:logLik,AIC,BIC, deviance,df.residual, andnobs(see #212). Note thattidy.aov()gives more complete information about degrees of freedom in anaovobject.
-
tidy.felm()now has arobust = TRUE/FALSEoption that supports robust and cluster standard errors. (#781 by @kuriwaki) -
Make
.fittedvalues respecttype.predictargument ofaugment.clm(). (#617) -
Return factor rather than numeric class predictions in
.fittedofaugment.polr(). (#619) Add an option to returnp.valuesintidy.polr(). (#833 by @LukasWallrich) -
tidy.kmeans()now uses the names of the input variables in the output by default. Setcol.names = NULLto recover the old behavior. -
Previously, F-statistics for weak instruments were returned through
glance.ivreg(). F-statistics are now returned throughtidy.ivreg(instruments = TRUE). Default istidy.ivreg(instruments = FALSE).glance.ivreg()still returns Wu-Hausman and Sargan test statistics. -
glance.biglm()now returns adf.residualcolumn. -
tidy.prcomp()argumentmatrixgained new options"scores","loadings", and"eigenvalues". (#557 by @GegznaV) -
tidy_optim()now provides the standard error if the Hessian is present. (#529 by @billdenney) -
tidy.htest()column names are now run throughmake.names()to ensure syntactic correctness. (#549 by @karissawhiting) -
tidy.lmodel2()now returns ap.valuecolumn. (#570) -
tidy.lsmobj()gained aconf.intargument for consistency with other tidiers. -
tidy.polr()now returns p-values ifp.valuesis set to TRUE and the model does not contain factors with more than two levels. -
tidy.zoo()now doesn't change column names that have spaces or other special characters (previously they were converted todata.framefriendly column names bymake.names.) -
glance.lavaan()now uses lavaan extractor functions instead of subsetting the fit object manually. (#835) -
glance.lm()no longer errors when only an intercept is provided as an explanatory variable. (#865)
- Bug fix for
tidy.survreg()whenrobustis set toTRUEin model fitting (#842, #728) - Bug fixes in
glance.lavaan(): address confidence interval error (#577) and correct reportednobsandnorig(#835) - Bug fix in muhaz tidiers to ensure output is always a
tibble(#824) - Several
glance.*()methods have been refactored in order to return a one-row tibble even when the model matrix is rank-deficient (#823) - Bug fix to return confidence intervals correct in
tidy.drc()(#798) - Added default methods for objects that subclass
glmandlmin order to error more informatively. (#749, #736, #708, #186) - Bug fix to allow
augment.kmeans()to work with masked data (#609) - Bug fix to allow
augment.Mclust()to work on univariate data (#490) - Bug fix to allow
tidy.htest()to supports equal variances (#608) - Bug fix to better allow
tidy.boot()to support confidence intervals (#581) - Bug fix for
tidy.polr()when passedconf.int = TRUE(#498)
-
Many
glance()methods now return anobscolumn, which contains the number of data points used to fit the model! (#597 by @vincentarelbundock) -
tidy()no longer checks for a log or logit link whenexponentiate = TRUE, and we have refactored to remove extraneousexponentiatearguments. If you setexponentiate = TRUE, we assume you know what you are doing and that you want exponentiated coefficients (and confidence intervals ifconf.int = TRUE) regardless of link function. -
We now use
rlang::arg_match()when possible instead ofarg.match()to give more informative errors on argument mismatches. -
The package's site has moved from https://broom.tidyverse.org/ to https://broom.tidymodels.org/.
-
Revised several vignettes and moved them to the tidymodels.org website. The existing vignettes will now simply link to the revised versions.
-
Many improvements to consistency and clarity of documentation.
-
Various warnings resulting from changes to the tidyr API in v1.0.0 have been fixed. (#870)
-
Removed dependencies on reshape2 and superseded functions in dplyr.
-
All documentation now links to help files rather than topics.
-
Moved core tests to the
modeltestspackage. -
Generally, after this release, the broom dev team will first ask that attempts to add tidier methods supporting a model object are first directed to the model-owning package. An article describing best practices in doing so can be found on the {tidymodels} website at https://www.tidymodels.org/learn/develop/broom/, and we will continue adding additional resources to that article as we develop them. In the case that the maintainer is uninterested in taking on the tidier methods, please note this in your issue or PR.
-
Added a new vignette discussing how to implement new tidier methods in non-broom packages.
- Fix failing CRAN checks to due
tibble 3.0.0release. Removedxergmdependency.
- Remove tidiers for robust package and drop robust dependency (temporarily)
- Fixes failing CRAN checks as the joineRML package has been removed from CRAN
- Fixes failing CRAN checks due to new matrix classing in R 4.0.0
-
Fixes failing CRAN checks
-
Changes to accommodate ergm 3.10 release.
tidy.ergm()no longer has aquickargument. The old default ofquick = FALSEis now the only option.
tidy(),glance()andaugment()are now re-exported from the generics package.
Tidiers now return tibble::tibble()s. This release also includes several new
tidiers, new vignettes and a large number of bug fixes. We've also begun to more
rigorously define tidier specifications: we've laid part of the groundwork for
stricter and more consistent tidying, but the new tidier specifications are not
yet complete. These will appear in the next release.
Additionally, users should note that we are in the process of migrating tidying
methods for mixed models and Bayesian models to broom.mixed. broom.mixed is
not on CRAN yet, but all mixed model and Bayesian tidiers will be deprecated
once broom.mixed is on CRAN. No further development of mixed model tidiers
will take place in broom.
Almost all tidiers should now return tibbles rather than data.frames.
Deprecated tidying methods, Bayesian and mixed model tidiers still return
data.frames.
Users are mostly to experience issues when using augment in situations
where tibbles are stricter than data frames. For example, specifying model
covariates as a matrix object will now error:
library(broom)
library(quantreg)
fit <- rq(stack.loss ~ stack.x, tau = .5)
broom::augment(fit)
#> Error: Column `stack.x` must be a 1d atomic vector or a listThis is because the default data argument data = model.frame(fit) cannot be
coerced to tibble.
Another consequence of this is that augment.survreg and augment.coxph from
the survival package now require that the user explicitly passes data to
either the data or newdata arguments.
These restrictions will be relaxed in an upcoming release of broom pending
support for matrix-columns in tibbles.
Developers are likely to experience issues:
-
subsetting tibbles with
[, which returns a tibble rather than a vector. -
setting rownames on tibbles, which is deprecated.
-
using matrix and vector tidiers, now deprecated.
-
handling the additional tibble classes
tbl_dfandtblbeyond thedata.frameclass -
linking to defunct documentation files -- broom recently moved all tidiers to a
roxygen2template based documentation system.
This version of broom includes several new vignettes:
-
vignette("available-methods", package = "broom")contains a table detailing which tidying methods are available -
vignette("adding-tidiers", package = "broom")is an in-progress guide for contributors on how to add new tidiers to broom -
vignette("glossary", package = "broom")contains tables describing acceptable argument names and column names for the in-progress new specification.
Several old vignettes have also been updated:
vignette("bootstrapping", package = "broom")now relies on thersamplepackage and atidyr::nest-purrr::map-tidyr::unnestworkflow. This is now the recommended workflow for working with multiple models, as opposed to the olddplyr::rowwise-dplyr::dobased workflow.
-
Matrix and vector tidiers have been deprecated in favor of
tibble::as_tibbleandtibble::enframe -
Dataframe tidiers and rowwise dataframe tidiers have been deprecated
-
bootstrap()has been deprecated in favor of thersample -
inflatehas been removed frombroom
-
The
alphaargument has been removed fromquantregtidy methods -
The
separate.levelsargument has been removed fromtidy.TukeyHSD. To obtain the effect ofseparate.levels = TRUE, users maytidyr::separateafter tidying. This is consistent with themultcomptidier behavior. -
The
fe.errorargument was removed fromtidy.felm. When fixed effects are tidier, their standard errors are now always included. -
The
diagargument intidy.disthas been renameddiagonal -
Advice to help beginners make PRs (#397 by @karldw)
-
glancesupport forarimaobjects fit withmethod = "CSS"(#396 by @josue-rodriguez) -
A bug fix to re-enable tidying
glmnetobjects withfamily = multinomial(#395 by @erleholgersen) -
A bug fix to allow tidying
quantregintercept only models (#378 by @erleholgersen) -
A bug fix for
aovlistobjects (#377 by @mvevans89) -
Support for
glmnetUtilsobjects (#352 by @Hong-Revo) -
A bug fix to allow
tidy_emmeansto handle column names with dashes (#351 by @bmannakee) -
augment.felmno longer returns.fe_and.compcolumns -
Support saved formulas in
augment.felm(#347 by @ShreyasSingh) -
confint_tidynow drops rows of allNA(#345 by @atyre2) -
A new tidier for
caret::confusionMatrixobjects (#344 by @mkuehn10) -
Tidiers for
Kendall::Kendallobjects (#343 by @cimentadaj) -
A new tidying method for
car::durbinWatsonTestobjects (#341 by @mkuehn10) -
glancethrows an informative error forquantreg:rqmodels fit with multipletauvalues (#338 by @bfgray3) -
tidy.glmnetgains the ability to retain zero-valued coefficients with areturn_zerosargument that defaults toFALSE(#337 by @bfgray3) -
tidy.manovanow retains aResidualsrow (#334 by @jarvisc1) -
Tidiers for
ordinal::clm,ordinal::clmm,survey::svyolrandMASS::polrordinal model objects (#332 by @larmarange) -
Support for
anovaobjects fromcar::Anova(#325 by @mariusbarth) -
Tidiers for
tseries::garchmodels (#323 by @wilsonfreitas) -
Removed dependency on
psychpackage (#313 by @nutterb) -
Improved error messages (#303 by @michaelweylandt)
-
Compatibility with new
rstanarmandloopackages (#298 by @jgabry) -
Support for tidying lists return by
irlba::irlba -
A truly huge increase in unit tests (#267 by @dchiu911)
-
Bug fix for
tidy.prcompwhen missing labels (#265 by @corybrunson) -
Added a
pkgdownsite at https://broom.tidyverse.org/ (#260 by @jayhesselberth) -
Added tidiers for
AER::ivregmodels (#247 by @hughjonesd) -
Added tidiers for the
lavaanpackage (#233 by @puterleat) -
Added
conf.intargument totidy.coxph(#220 by @larmarange) -
Added
augmentmethod for chi-squared tests (#138 by @larmarange) -
changed default se.type for
tidy.rqto match that ofquantreg::summary.rq()(#404 by @ethchr) -
Added argument
quickfortidy.plmandtidy.felm(#502 and #509 by @MatthieuStigler) -
Many small improvements throughout
Many many thanks to all the following for their thoughtful comments on design, bug reports and PRs! The community of broom contributors has been kind, supportive and insightful and I look forward to working you all again!
@atyre2, @batpigandme, @bfgray3, @bmannakee, @briatte, @cawoodjm, @cimentadaj, @dan87134, @dgrtwo, @dmenne, @ekatko1, @ellessenne, @erleholgersen, @ethchr, @Hong-Revo, @huftis, @IndrajeetPatil, @jacob-long, @jarvisc1, @jenzopr, @jgabry, @jimhester, @josue-rodriguez, @karldw, @kfeilich, @larmarange, @lboller, @mariusbarth, @michaelweylandt, @mine-cetinkaya-rundel, @mkuehn10, @mvevans89, @nutterb, @ShreyasSingh, @stephlocke, @strengejacke, @topepo, @willbowditch, @WillemSleegers, @wilsonfreitas, and @MatthieuStigler
-
Fixed gam tidiers to work with "Gam" objects, due to an update in gam 1.15. This fixes failing CRAN tests
-
Improved test coverage (thanks to #267 from Derek Chiu)
-
Changed the deprecated
dplyr::failwithtopurrr::possibly -
augmentandglanceon NULLs now return an empty data frame -
Deprecated the
inflate()function in favor oftidyr::crossing -
Fixed confidence intervals in the gmm tidier (thanks to #242 from David Hugh-Jones)
-
Fixed a bug in bootstrap tidiers (thanks to #167 from Jeremy Biesanz)
-
Fixed tidy.lm with
quick = TRUEto return terms as character rather than factor (thanks to #191 from Matteo Sostero) -
Added tidiers for
ivregobjects from the AER package (thanks to #245 from David Hugh-Jones) -
Added tidiers for
survdiffobjects from the survival package (thanks to #147 from Michał Bojanowski) -
Added tidiers for
emmeansfrom the emmeans package (thanks to #252 from Matthew Kay) -
Added tidiers for
speedlmandspeedglmfrom the speedglm package (#685, thanks to #248 from David Hugh-Jones) -
Added tidiers for
muhazobjects from the muhaz package (thanks to #251 from Andreas Bender) -
Added tidiers for
decomposeandstlobjects from stats (thanks to #165 from Aaron Jacobs)
-
Added tidiers for
lsmobjandref.gridobjects from the lsmeans package -
Added tidiers for
betaregobjects from the betareg package -
Added tidiers for
lmRobandglmRobobjects from the robust package -
Added tidiers for
brmsobjects from the brms package (thanks to #149 from Paul Buerkner) -
Fixed tidiers for orcutt 2.0
-
Changed
tidy.glmnetto filter out rows where estimate == 0. -
Updates to
rstanarmtidiers (thanks to #177 from Jonah Gabry) -
Fixed issue with survival package 2.40-1 (thanks to #180 from Marcus Walz)
-
Added AppVeyor, codecov.io, and code of conduct
-
Changed name of "NA's" column in summaryDefault output to "na"
-
Fixed
tidy.TukeyHSDto includetermcolumn. Also addedseparate.levelsargument, with option to separatecomparisonintolevel1andlevel2 -
Fixed
tidy.manovato use correct column name for test (previously, alwayspillai) -
Added
kde_tidiersto tidy kernel density estimates -
Added
orcutt_tidiersto tidy the results ofcochrane.orcuttorcutt package -
Added
tidy.distto tidy the distance matrix output ofdistfrom the stats package -
Added
tidyandglanceforlmodel2objects from the lmodel2 package -
Added tidiers for
poLCAobjects from the poLCA package -
Added tidiers for sparse matrices from the Matrix package
-
Added tidiers for
prcompobjects -
Added tidiers for
Mclustobjects from the Mclust package -
Added tidiers for
acfobjects -
Fixed to be compatible with dplyr 0.5, which is being submitted to CRAN
-
Added tidiers for geeglm, nlrq, roc, boot, bgterm, kappa, binWidth, binDesign, rcorr, stanfit, rjags, gamlss, and mle2 objects.
-
Added
tidymethods for lists, including u, d, v lists fromsvd, and x, y, z lists used byimageandpersp -
Added
quickargument totidy.lm,tidy.nls, andtidy.biglm, to create a smaller and faster version of the output. -
Changed
rowwise_df_tidiersto allow the original data to be saved as a list column, then provided as a column name toaugment. This required removingdatafrom theaugmentS3 signature. Also addedtests-rowwise.R -
Fixed various issues in ANOVA output
-
Fixed various issues in lme4 output
-
Fixed issues in tests caused by dev version of ggplot2
-
Added tidiers for "plm" (panel linear model) objects from the plm package.
-
Added
tidy.coeftestfor coeftest objects from the lmtest package. -
Set up
tidy.lmto work with "mlm" (multiple linear model) objects (those with multiple response columns). -
Added
tidyandglancefor "biglm" and "bigglm" objects from the biglm package. -
Fixed bug in
tidy.coxphwhen one-row matrices are returned -
Added
tidy.power.htest -
Added
tidyandglanceforsummaryDefaultobjects -
Added tidiers for "lme" (linear mixed effects models) from the nlme package
-
Added
tidyandglanceformultinomobjects from the nnet package.
-
Fixed bug in
tidy.pairwise.htest, which now can handle cases where the grouping variable is numeric. -
Added
tidy.aovlistmethod. This addedstringrpackage to IMPORTS to trim whitespace from the beginning and end of thetermandstratumcolumns. This also required adjustingtidy.aovso that it could handle strata that are missing p-values. -
Set up
glance.lmto work withaovobjects along withlmobjects. -
Added
tidyandglancefor matrix objects, withtidy.matrixconverting a matrix to a data frame with rownames included, andglance.matrixreturning the same result asglance.data.frame. -
Changed DESCRIPTION Authors@R to new format
-
Fixed small bug in
felmwhere the.fittedand.residcolumns were matrices rather than vectors. -
Added tidiers for
rlm(robust linear model) andgam(generalized additive model) objects, including adjustments to "lm" tidiers in order to handle them. See?rlm_tidiersand?gam_tidiersfor more. -
Removed rownames from
tidy.cv.glmnetoutput
-
The behavior of
augment, particularly with regard to missing data and thena.excludeargument, has through the use of theaugment_columnsfunction been made consistent across the following models:-
lm -
glm -
nls -
merMod(lme4) -
survreg(survival) -
coxph(survival)
-
Unit tests in tests/testthat/test-augment.R were added to ensure consistency
across these models.
tidy,augmentandglancemethods were added forrowwise_dfobjects, and are set up to apply across their rows. This allows for simple patterns such as:
regressions <- mtcars %>% group_by(cyl) %>% do(mod = lm(mpg ~ wt, .)) regressions %>% tidy(mod) regressions %>% augment(mod)
See ?rowwise_df_tidiers for more.
-
Added
tidyandglancemethods forArimaobjects, andtidyforpairwise.htestobjects. -
Fixes for CRAN: change package description to title case, removed NOTES, mostly by adding
globals.Rto declare global variables. -
This is the original version published on CRAN.
-
Tidiers have been added for S3 objects from the following packages:
-
lme4 -
glmnet -
survival -
zoo -
felm -
MASS(ridgelmobjects)
-
-
tidyandglancemethods for data.frames have also been added, andaugment.data.frameproduces an error (rather than returning the same data.frame). -
stderrorhas been changed tostd.error(affects many functions) to be consistent with broom's naming conventions for columns. -
A function
bootstraphas been added based on this example, to perform the common use case of bootstrapping models.
-
Added "augment" S3 generic and various implementations. "augment" does something different from tidy: it adds columns to the original dataset, including predictions, residuals, or cluster assignments. This was originally described as "fortify" in ggplot2.
-
Added "glance" S3 generic and various implementations. "glance" produces a one-row data frame summary, which is necessary for tidy outputs with values like R^2 or F-statistics.
-
Re-wrote intro broom vignette/README to introduce all three methods.
-
Wrote a new kmeans vignette.
-
Added tidying methods for multcomp, sp, and map objects (from fortify-multcomp, fortify-sp, and fortify-map from ggplot2).
-
Because this integrates substantial amounts of ggplot2 code (with permission), added Hadley Wickham as an author in DESCRIPTION.