Learn R Programming

shide (version 0.2.1)

is_jdate: Check an object for its class

Description

  • is_jdate() checks whether an object is of class jdate.

  • is_jdatetime() checks whether an object is of class jdatetime.

Usage

is_jdate(x)

is_jdatetime(x)

Value

TRUE or FALSE.

Arguments

x

An object to test.

Examples

Run this code
is_jdate(jdate_now() + 1) # TRUE
is_jdatetime(jdatetime_now() + as.difftime(2, units = "hours")) # TRUE

Run the code above in your browser using DataLab