-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
augment makes 'OBJECT' columns #287
Comments
Well actually ... 👉 mod <- lm(y~ ., data=freeny)
y <- model.frame(mod)$y
is.object(y)
#> [1] TRUE
attr(y, "class")
#> NULL Created on 2018-03-05 by the reprex package (v0.2.0). |
I've just added some defensive code in dplyr. This is not a |
Since I didn't catch all of what was going on from the above, here's what's happening:
This is actually partially documented behavior of
And lo and behold:
The unexpected part is that the attributes have been removed, but
For conciseness, we can reproduce this by taking
Then comparing
This differs from the simple behavior of
I've just passed this along to |
Seems like this will be fixed as a bug in R: |
Thanks for taking the time to report the bug upstream :-) |
@alexpghayes Maybe this is already fixed after the release of R 3.6.0? |
This issue has been automatically closed due to inactivity. |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
This is what was troubling tidyverse/dplyr#3349
Not sure this is a broom issue, might be a legacy from
lm
, just passing the 🏀 along.Created on 2018-03-05 by the reprex package (v0.2.0).
The text was updated successfully, but these errors were encountered: