Learn R Programming

lubridate (version 1.9.4)

is.difftime: Is x a difftime object?

Description

Is x a difftime object?

Usage

is.difftime(x)

Value

TRUE if x is a difftime object, FALSE otherwise.

Arguments

x

an R object

See Also

is.instant(), is.timespan(), is.interval(), is.period().

Examples

Run this code
is.difftime(as.Date("2009-08-03")) # FALSE
is.difftime(make_difftime(days = 12.4)) # TRUE

Run the code above in your browser using DataLab