Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exposure <- HS_Hatch %>%
- group_by(ClutchID) %>%
- summarize(first_visit = min(date_visit),
- last_visit = max(date_visit),
- exposure = last_visit - first_visit)
- https://stackoverflow.com/questions/40570221/calculate-difference-between-dates-by-group-in-r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement