Skip to contents

Small helper function to verify whether an object is of class Date or POSIXct.

Usage

is_date(x)

Arguments

x

An atomic object (a vector).

Value

a logical of length one.

Examples

is_date(as.Date("2023-09-03"))
#> [1] TRUE