is_jdate {shide} | R Documentation |
Check an object for its class
Description
-
is_jdate()
checks whether an object is of classjdate
. -
is_jdatetime()
checks whether an object is of classjdatetime
.
Usage
is_jdate(x)
is_jdatetime(x)
Arguments
x |
An object to test. |
Value
TRUE
or FALSE
.
Examples
is_jdate(jdate_now() + 1) # TRUE
is_jdatetime(jdatetime_now() + as.difftime(2, units = "hours")) # TRUE
[Package shide version 0.2.1 Index]