-
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
Issue with grouped operations and attributes #2773
Comments
Aggregation of attributes is a really difficult issue because we don't have any information about how to do it. Some attributes are vectorised, some aren't. I'm surprised that the attributes of the original vector are preserved at all actually. |
This could work if the subsetting of grouped data were done by calling R's subsetting operator (at least when there are attributes involved). But even if I define the operator |
There's the issue of subsetting and there's the issue of aggregating all the data back to one vector. We need C-level genericity of vectors and we have plans regarding this, but it's not a trivial issue. |
This is on our long term to do list. |
Consider the following custom S3 class with an attribute:
in which the length of the attribute must coincide with the vector. I define the following S3 methods:
where
mean
summarises the vector as well as the attribute. Then,Ok, but
The text was updated successfully, but these errors were encountered: