Skip to content
Prev 156922 / 398506 Next

Contional

Is this what you want:  TRUE marks the ones to be removed
+     (head(x$user_id, -1) == tail(x$user_id, -1))
Source_type           timestamp      user_id  flag
75381           0 07-07-2008-21:03:55 848307909687 FALSE
75379           1 07-07-2008-19:52:55 848307838407 FALSE
75380           2 07-07-2008-19:54:14 848307838407 FALSE
75378           1 07-07-2008-15:24:01 848285633277 FALSE
75374           1 07-07-2008-13:39:17 848273633667 FALSE
75377           2 07-07-2008-13:39:55 848273633667 FALSE
75376           2 07-07-2008-13:39:55 848273633667  TRUE
75375           2 07-07-2008-13:56:05 848273633667 FALSE
75373           1 07-07-2008-17:11:00 848272661427 FALSE
75371           1 07-07-2008-13:19:00 848270431847 FALSE
75372           2 07-07-2008-13:19:14 848270431847 FALSE
75369           1 07-07-2008-12:49:16 848269676907 FALSE
75370           2 07-07-2008-12:49:16 848269676907  TRUE
75366           1 07-07-2008-13:29:15 848263484847 FALSE
75368           2 07-07-2008-13:29:44 848263484847 FALSE

        
On Tue, Sep 23, 2008 at 4:44 PM, Michael Pearmain <mpearmain at google.com> wrote: