is.Date: Is x a Date object?

Description Usage Arguments Value See Also Examples

View source: R/Dates.r

Description

Is x a Date object?

Usage

1

Arguments

x

an R object

Value

TRUE if x is a Date object, FALSE otherwise.

See Also

is.instant(), is.timespan(), is.POSIXt()

Examples

1
2
is.Date(as.Date("2009-08-03")) # TRUE
is.Date(difftime(now() + 5, now())) # FALSE

Example output

Attaching package: 'lubridate'

The following object is masked from 'package:base':

    date

[1] TRUE
[1] FALSE

lubridate documentation built on April 11, 2018, 5:03 p.m.