0

I'm trying to use tidy to put a regression result into table format to export to Excel. My codes worked fine last month, but today I got Error: Column 6 must be named. Below is an example:

CarReg = lm(formula = speed ~., data = cars)
# Standardize coefficients
library(lm.beta)
CarRegS = lm.beta::lm.beta(CarReg)
# Table format
library(broom)
tidy(CarRegS)
Error: Column 6 must be named
Phil
  • 7,287
  • 3
  • 36
  • 66
T-T
  • 693
  • 1
  • 10
  • 24
  • I would submit that as a bug report on the github page. https://github.com/tidymodels/broom/issues – Phil Sep 10 '18 at 21:34
  • Thanks @Phil. I just did. Is there a workaround? – T-T Sep 10 '18 at 21:43
  • 1
    You could go back a version by downloading whatever version you used before here: https://cran.r-project.org/src/contrib/Archive/broom/ and try again. Otherwise, what were you looking to extract? If you have an example of what the final data should look like, it would help create a custom solution. – Phil Sep 10 '18 at 21:46
  • @Phil version 0.4.1 worked! Thanks a lot! – T-T Sep 10 '18 at 22:03
  • np - you may want to point that out in the issue you filed on their github page. – Phil Sep 10 '18 at 22:04
  • @Phil Yep, I just did. – T-T Sep 10 '18 at 22:17

1 Answers1

0

I had the same issue after I started a new R session (but with tidy on a lmer function instead of your lm.beta). Probably because of delayed loading of broom tools. After it loaded (after +- 5 minutes) it worked as when I wrote the script. Hope that helps!