You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the reproducible example. This is related to #124. If mean.xts is either removed or renamed to mean_xts, then period.apply(data, ends, mean) returns a 1-column object consistent with your other examples.
It is interesting that period.apply(data, ends, mean) and period.apply(data, ends, function(x) mean(x)) don't return the same results. Given the direction decided in #124, I'm not going to investigate this curiosity further.
The issue below is for xts 0.9.
Please consider the following example
Taking mean of values every 2s gives data frame with
a
andb
columnsI would expect
period.apply
to behave in similar way for median function, butAlso
but according to the documentation above should be the same as
period.apply(data, ends, mean)
.The text was updated successfully, but these errors were encountered: