overlaps.Rd
Checks which rows of a data frame have the same ID and overlap temporally
overlaps(df, Id = "Id", Beg = "Beg", End = "End")
df | must be a data frame |
---|---|
Id | a string corresponding to an ID column in the data frame |
Beg | a string corresponding to a column in the data frame where the start dates/times are held |
End | a string corresponding to a column in the data frame where the end dates/times are held |
A vector of groups of observations with the same ID and overlapping temporally
# NOT RUN { overlaps(data, Id="StatID") # }