-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Why do dplyr verbs remove all (non-class) attributes? #3558
Comments
In short, because we don't know if your attributes are row-wise, col-wise, or object-wise. For example, should |
Related to #3429 |
Right. Let's close this in favor of #3429. When it is in place perhaps we can issue warnings about attributes that we don't handle and perhaps suggest that they are made part of a class that deals with it. |
It's a matter of who is responsible for keeping track of what these attributes mean. The point of #3429 is to give you some control, because dplyr can't make these decisions. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
I know about class attributes from Issue #719, but I do not understand why other attributes are removed. Preserving them would be more friendly to pkg authors who may wish to invent functions that fit in the pipeline between dplyr verbs, but need their own attributes.
The above gives
NULL
.My
simputation
pkg simply records the attributes at entry and re-adds them in the end. Clearly,dplyr
verbs do something like that with the attribute used for grouping. So why not for others?The text was updated successfully, but these errors were encountered: