ez.is.date | R Documentation |
check if a vector is already stored as a date type
ez.is.date(x)
x |
a vector, no need to specify date formats |
returns a single T/F (not vectorized). If x is a date, is.numeric(x) is FALSE.
ez.date
ez.is.date
ez.is.date.like
ez.age
ez.time
mydate = c("10/11/2012","10/12/2012")
# format one of c("%d/%m/%Y", "%d-%m-%Y", "%Y/%m/%d", "%m/%d/%Y", "%Y-%m-%d"). %y for two year digits
mydate = as.Date(mydate,format = "%m/%d/%Y") # "2012-10-11" "2012-10-12"
ez.is.date(mydate) # T
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.