Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

date_utils

Various date utilities


Description

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

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

Examples

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

lubridate

Make Dealing with Dates a Little Easier

v1.7.10
GPL (>= 2)
Authors
Vitalie Spinu [aut, cre], Garrett Grolemund [aut], Hadley Wickham [aut], Ian Lyttle [ctb], Imanuel Costigan [ctb], Jason Law [ctb], Doug Mitarotonda [ctb], Joseph Larmarange [ctb], Jonathan Boiser [ctb], Chel Hee Lee [ctb], Google Inc. [ctb, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.