overlapping_range: Check overlap for a given date range

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

Check whether a given date range overlaps with the other collection of date range.

Usage

1
overlapping_range(start_value, end_value, start_vector, end_vector)

Arguments

start_value

a date value which signifies start of the date range to check for overlap.

end_value

a date value which signifies end of the date range to check for overlap.

start_vector

a date vector which signifies start of the multiple date range to check overlap against.

end_vector

a date vector which signifies end of the multiple date range to check overlap against.

Value

a logical value to represent overlap.

Examples

1
2
3
overlapping_range(start_value = as.Date("2020-01-01"),
end_value = as.Date("2021-01-01"),
start_vector = as.Date("2019-03-01"), end_vector = as.Date("2021-06-01"))

deepjyot1991/zimplify documentation built on Dec. 19, 2021, 10:09 p.m.