Adaptive moving average – top performance in R

December 2018 update Efficient implementation of adaptive rolling functions has been made in data.table recently – more info in ?froll manual. Additionally an efficient alternative solution using base R has been identified (fastama below). Unfortunately Kevin Ushey’s answer does not address the question thus it is not included in benchmark. Scale of benchmark has been … Read more

error code: 523