Skip to content
Prev 173530 / 398503 Next

Removing

True, I suppose. The specification from Ma could have been more  
explicit. Should she want to only have duplicates in sequence, then  
perhaps the use of construction within the rle function would be useful.

act2[ act2$Rep[-1] != act2$Rep[-length(act2$Rep)], ]

          Date    Dtime Hour Min Second               Rep
51 2006-02-22 14:52:18   14  52     18  useractivity_act
57 2006-02-22 14:52:51   14  52     51                 4
58 2006-02-22 14:52:52   14  52     52                 3
60 2006-02-22 14:54:42   14  54     42 useractivity_idle

Which turns out on examination to be isomorphic to Gabor's earlier  
efforts.