is.difftime: Is x a difftime object?

Description Usage Arguments Value See Also Examples

View source: R/difftimes.r

Description

Is x a difftime object?

Usage

1

Arguments

x

an R object

Value

TRUE if x is a difftime object, FALSE otherwise.

See Also

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

Examples

1
2
is.difftime(as.Date("2009-08-03")) # FALSE
is.difftime(make_difftime(days = 12.4)) # TRUE

Example output

Attaching package:lubridateThe following objects are masked frompackage:base:

    date, intersect, setdiff, union

[1] FALSE
[1] TRUE

lubridate documentation built on Feb. 26, 2021, 5:09 p.m.