to me.
HTH
Peter Alspach
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Michael Pearmain
> Sent: Wednesday, 24 September 2008 8:44 a.m.
> To: r-help@r-project.org
> Subject: [R] Contional
>
> Hi All,
>
> I'm
Is this what you want: TRUE marks the ones to be removed
> mark <- (head(x$timestamp, -1) == tail(x$timestamp, -1)) &
+ (head(x$user_id, -1) == tail(x$user_id, -1))
> x$flag <- c(FALSE, mark)
> x
Source_type timestamp user_id flag
75381 0 07-07-2008-21:03:55 84
Hi All,
I'm having trouble selecting rows to delete, that i can't seem to overcome.
Below is some sample data, i am trying to dedup the data based on each user,
and simultaneously the timestamp (at the side i have highlighted expected
row to be removed)
I've looked at the lag function but can't
3 matches
Mail list logo