R equivalents of the following Python codes

后端 未结 0 1326
清歌不尽
清歌不尽 2020-12-07 05:45

What are the R equivalents of the following Python codes? Can they be converted?

d = (X[\'A\'].shift(-1) - X[\'A\']).fillna(1)
t = X.reindex(X.index.repeat(d.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题