Skip to contents

Check if an object is a date class

Usage

ts_is_date_class(.x)

Arguments

.x

A vector to check

Value

Logical (TRUE/FALSE)

Examples


seq.Date(from = as.Date("2022-01-01"), by = "day", length.out = 10) %>%
ts_is_date_class()
#> [1] TRUE

letters %>% ts_is_date_class()
#> [1] FALSE