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
I also noticed that rollmean() is using align = "center" instead of align = "right" like rollapply.xts() does by default. That's because there isn't a rollmean.xts() method for the rollmean() generic to dispatch, so it dispatches to rollmean.zoo(), and it uses align = "center" by default. So we probably also need xts methods for 'rollmean', 'rollsum', 'rollmedian', and 'rollmax'.
Description
The function
rollmean
fails when there are missing values in multi-columnxts
object andk = nrow(x)
.Expected behavior
I'd expect that
rollmean
works also with missing values as in the example belowMinimal, reproducible example
Session Info
The text was updated successfully, but these errors were encountered: