Mutate(near = (lag(date, default = first(date)) + ndays cumsum(). Filter to visit groups where there is a 3 in the group.Create a visit group column by making a new group for each site when the visit number equals 1 again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |