阅读背景:

通过变量列表执行滚动求和的优雅,快速方法

来源:互联网 

Has anyone developed an elegant, fast way to perform a rolling sum by date? For example, if I wanted to create a rolling 180-day total for the following dataset by Cust_ID, is there a way to do it faster (like something in data.table). I have been using the following example to currently calculate the rolling sum, but I am afraid it is far to inefficient.Has anyone developed an elegant, fast way to pe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: