Checks which rows of a data frame have the same ID and overlap temporally

overlaps(df, Id = "Id", Beg = "Beg", End = "End")

Arguments

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

Value

A vector of groups of observations with the same ID and overlapping temporally

Examples

# NOT RUN {
overlaps(data, Id="StatID")
# }