Howtodropobservationswithinter-rowdifferencebeinglessthanaspecificvalue我有一个data.table,它由几个组(更具体的分层面板/经度数据集)组成,组中的一个单元格看起来像这样1234567891011121314z t=as.Date(c(27,32:34,36:41)))#thatis:# x t# 1:10.01970-01-28# 2:10.51970-02-02# 3:11.11970-02-03# 4:14.01970-02-04# 5:14.21970-02-06#toberemove
Howtodropobservationswithinter-rowdifferencebeinglessthanaspecificvalue我有一个data.table,它由几个组(更具体的分层面板/经度数据集)组成,组中的一个单元格看起来像这样1234567891011121314z t=as.Date(c(27,32:34,36:41)))#thatis:# x t# 1:10.01970-01-28# 2:10.51970-02-02# 3:11.11970-02-03# 4:14.01970-02-04# 5:14.21970-02-06#toberemove