Skip to contents

Check if an object is a date class

Usage

is_date_class(x)

Arguments

x

A vector to check

Value

Logical (TRUE/FALSE)

Examples

library(dplyr)

tk_make_timeseries("2011") %>% is_date_class()
#> Using by: day
#> [1] TRUE

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