Description Usage Arguments Value Author(s) See Also Examples
Coerce character strings to Date class by judiciously guessing the strings' format
1 | to_ISO_8601(strs, year.left = TRUE, american = FALSE)
|
strs |
|
year.left |
|
american |
|
Date
vector
Thomas P. Harte
1 2 3 4 5 6 7 8 9 10 11 12 | tab<- tutils:::make_ISO_8601_test_table()
tab %<>% mutate(`Output`=as.character(NA))
for (row in 1:nrow(tab)) {
tab[row, "Output"]<- to_ISO_8601(
str=tab[row, "Test"],
year.left=tab[row, "year.left"],
american=tab[row, "american"]
) %>% as.character
}
(tab %<>% mutate(`success`=`Expected`==`Output`))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.