阅读背景:

计算在R中数据帧的每一行中特定值的连续出现次数

来源:互联网 

I've got a data.frame of monthly values of a variable for many locations (so many rows) and I want to count the numbers of consecutive months (i.e consecutive cells) that have a value of zero. This would be easy if it was just being read left to right, but the added complication is that the end of the year is consecutive to the start of the year. of monthly values of a va




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

分享到: