View source: R/str2str_functions.R
is.Date | R Documentation |
is.Date
returns whether an object is a Date object (aka has class = "Date").
is.Date(x)
x |
an object. |
TRUE is x
has class "Date" and FALSE if x
does not have class "Date".
date <- as.Date("2021-05-24", format = "%Y-%m-%d") # as.Date.character
is.Date(date)
class(date) <- append(class(date), "extra_class")
is.Date(date) # classes other than Date are allowed
is.Date(list(date)) # returns FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.