-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add apply()
functions for xts/zoo objects
#380
Comments
I agree that this is a useful functionality, thanks for suggesting an implementation. I also think that it would be good if
|
I have also written to Kurt now to find out whether he thinks this is important enough to try to propose generics and default methods on Bugzilla. |
I agree about avoiding masking functions from
Agreed. Regarding |
Sorry, I just now realized that my Markdown formatting was broken and hence my suggestion (b) for multi-row
If users want the plain matrix output, they can get it via And duplicated time stamps lead to conceptual problems when merging different series with different numbers of duplicated time stamps. That's why |
These would be generic functions to make it easier to do row/column calculations on xts than use
apply()
and have to convert the result back to xts. This idea was prompted by #281 and many users via email, stackoverflow, etc. over the years.A proof-of-concept implementation of both is below. I can't decide between the names
rowapply()
, orapplyrows()
, or either with a separator between the words.And some example use cases:
The text was updated successfully, but these errors were encountered: