Displaying 1 result from an estimated 1 matches for "itagb".
Did you mean:
itags
2005 Feb 04
1
(no subject)
...for s < t, we know n_s - n_t samples exist in the interval [s, t). If
this sample size of the difference is small I want to exclude the interval
[10,s). This can be done comparing adjacent preceding rows using the
following.
> df0$itagA <- ifelse(c(10, diff(nsamA)) <= 4, 1, 0)
>df0$itagB <- ifelse(c(10, diff(nsamB)) <= 4, 1, 0)
>df0
># Subset df0 on the tag results
> df1 <- df0[df0$itagA != 1 & df0$itagB != 1,]
> df1
This works fine, but here is my problem. This simply looks at only the
immediate preceding row and not at rows further "down the line&qu...