IsDate | R Documentation |
Check if the given x is of any known Date type.
IsDate(x, what = c("either", "both", "timeVaries"))
x |
a vector or values to be checked. |
what |
can be any value out of " |
This checks for many known Date and Time classes: "POSIXt", "POSIXct", "dates", "times", "chron", "Date".
logical vector of the same dimension as x.
Frank E Harrell
Year
, Month
, etc.
IsDate(as.Date("2013-04-10"))
IsDate(31002)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.