Skip to contents

This function checks if a given query date falls within a time interval defined by a vector of two dates.

Usage

query_date %tin% tvec

Arguments

query_date

The query date to check.

tvec

A vector of two dates defining the time interval.

Value

TRUE if the query date falls within the time interval, FALSE otherwise.

Examples

if (FALSE) { # \dontrun{
query_date <- as.Date("2022-01-01")
tvec <- c(as.Date("2021-01-01"), as.Date("2023-01-01"))
`%tin%`(query_date, tvec)
} # }