is.Date

0th

Percentile

Various date utilities

Date() mirrors primitive contructors in base R (double(), character() etc.)

Keywords
datasets, logic, chron
Usage
is.Date(x)

Date(length = 0L)

NA_Date_

Arguments
x

an R object

length

A non-negative number specifying the desired length. Supplying an argument of length other than one is an error.

Format

An object of class Date of length 1.

See Also

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

Aliases
  • is.Date
  • Date
  • NA_Date_
Examples
# NOT RUN {
is.Date(as.Date("2009-08-03")) # TRUE
is.Date(difftime(now() + 5, now())) # FALSE
# }
Documentation reproduced from package lubridate, version 1.7.9.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.