阅读背景:

如何在R中创建一个指示观察与另一个观察的滞后的列?

来源:互联网 

I have dataframe d with a Boolean variable event indicating whether a certain event occurred on a given date. I want to create a new variable that indicates how many observations (days) away the closest event is.I have dataframe d with a Boolean variable even




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

分享到: