Description Usage Arguments Value
Test for proper formatting in a date column
1 | test_datecol(dat, index, form = ymd)
|
dat |
data frame to test |
index |
index of column containing dates |
form |
a lubridate function giving the format the dates should be in |
returns FALSE if parsing using the function specified in form
fails. If parsing succeeds, the minimum and maximum years in the date column are printed, so that mis-formatted dates (that still pass parse tests) can be detected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.